*include stdio.h in a couple files for MinGW GCC 4.4.0
[supertux.git] / tools / miniswig / create_wrapper.cpp
index ba5a43f..d5912e2 100644 (file)
@@ -1,11 +1,13 @@
 #include <config.h>
 
 #include "tree.hpp"
+#include "create_wrapper.hpp"
+#include "globals.hpp"
+
+#include <stdio.h>
 #include <iostream>
 #include <sstream>
 #include <stdexcept>
-#include "create_wrapper.hpp"
-#include "globals.hpp"
 
 void
 WrapperCreator::create_wrapper(Namespace* ns)
@@ -28,7 +30,6 @@ WrapperCreator::create_wrapper(Namespace* ns)
         << "#define __" << modulename << "_WRAPPER_H__\n"
         << "\n"
         << "#include <squirrel.h>\n"
-        << "#include \"wrapper.interface.hpp\"\n"
         << "\n"
         << "namespace Scripting\n"
         << "{\n"
@@ -44,6 +45,7 @@ WrapperCreator::create_wrapper(Namespace* ns)
         if(_class == 0)
             continue;
 
+        hppout << "class " << _class->name << ";\n";
         hppout << "void create_squirrel_instance(HSQUIRRELVM v, "
                << ns_prefix << _class->name
                << "* object, bool setup_releasehook = false);\n";