]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/parser.y
compilation problem fixed
[wxWidgets.git] / src / common / parser.y
index 336ee0f964eb265e49ae8cd0fbd307ff2636d3be..685531559df8a73284dbe0d32027d67c5fb7fb02 100644 (file)
@@ -1,5 +1,12 @@
  %{
 #include <string.h>
+#ifdef _MSC_VER
+#include <io.h>
+#endif
+#ifdef __GNUWIN32__
+#include <sys/unistd.h>
+#endif
+
 #include "wx/expr.h"
 
 #ifndef __EXTERN_C__
@@ -117,11 +124,15 @@ arg1      :       WORD
 
 %%
 
-#ifdef __WXGTK__
+#if (defined(__WXGTK__) || defined(__WXMOTIF__)) && !defined(NO_CONFIGURE)
 #include "lexer.c"
 #else
+#if (defined(__MWERKS__))
+#include "../common/cwlex_yy.c"
+#else
 #include "../common/lex_yy.c"
 #endif
+#endif
 
 /*
 void yyerror(s)
@@ -155,7 +166,7 @@ void yyerror(char *s)
 #ifndef yywrap
 #define yywrap() 1
 #endif
-#else if !defined(__alpha) && !defined(__ultrix)
+#else if !defined(__alpha___) && !defined(__ultrix)
 int yywrap() { return 1; }
 #endif
 #endif