]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/parser.y
Unicode compilation fix
[wxWidgets.git] / src / common / parser.y
index cea8e3a3bbb61625cc7e4e9adebeb8f948accdce..65ef760816198325d4a27d9656bdfef71d867c14 100644 (file)
@@ -1,4 +1,5 @@
  %{
+#include "wx/setup.h"
 #include <string.h>
 #ifdef _MSC_VER
 #include <io.h>
@@ -156,7 +157,9 @@ void yyerror(char *s)
  * to test
  */
 
-#ifndef __SC__
+/* HH: Added test for __WX_SETUP_H__ for gnuwin builds
+ * using configure */ 
+#if !defined(__SC__) && !defined(__GNUWIN32__) 
 #ifdef USE_DEFINE
 #ifndef yywrap
 #define yywrap() 1
@@ -164,4 +167,6 @@ void yyerror(char *s)
 #else if !defined(__alpha___) && !defined(__ultrix)
 int yywrap() { return 1; }
 #endif
+#elif defined(__WX_SETUP_H__)
+int yywrap() { return 1; }
 #endif