(svn r9181) [NoAI] -Fix: allow compilation with MINGW and _UNICODE (squirrel has some problems with that) noai
authorglx
Wed, 14 Mar 2007 22:31:59 +0000
branchnoai
changeset 9389 cb4e3c4ae84e
parent 9388 032008c3f6e3
child 9390 4042c17c8055
(svn r9181) [NoAI] -Fix: allow compilation with MINGW and _UNICODE (squirrel has some problems with that)
src/ai/squirrel/squirrel.hpp
--- a/src/ai/squirrel/squirrel.hpp	Wed Mar 14 20:25:43 2007 +0000
+++ b/src/ai/squirrel/squirrel.hpp	Wed Mar 14 22:31:59 2007 +0000
@@ -6,6 +6,12 @@
 #define SQUIRREL_HPP
 
 #include "../core/ai_controller.hpp"
+#ifdef _UNICODE
+/* Disable unicode for squirrel to allow compilation with MINGW
+ * and simplify coding for WIN32 (squirrel headers miss a lot of "string" functions)
+ */
+#undef _UNICODE
+#endif
 #include <squirrel.h>
 
 class Squirrel: public AIController {