X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6de97a3b945c99fb942209df48be26f43c1b436d..5b6ec9803a058368a1b240a22d444c7301c5715a:/src/common/parser.y diff --git a/src/common/parser.y b/src/common/parser.y index 336ee0f964..c834a77e53 100644 --- a/src/common/parser.y +++ b/src/common/parser.y @@ -1,5 +1,12 @@ %{ #include +#ifdef _MSC_VER +#include +#endif +#ifdef __GNUWIN32__ +#include +#endif + #include "wx/expr.h" #ifndef __EXTERN_C__ @@ -117,7 +124,7 @@ arg1 : WORD %% -#ifdef __WXGTK__ +#if (defined(__WXGTK__) || defined(__WXMOTIF__)) && !defined(NO_CONFIGURE) #include "lexer.c" #else #include "../common/lex_yy.c" @@ -155,7 +162,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