X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cfe780fb99dc42d454625b1ea88ae687c54acbf1..5de5db0eb14aa86b5b177050720deb0f4c210fba:/src/common/parser.y diff --git a/src/common/parser.y b/src/common/parser.y index 1fb7dceb10..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,11 @@ arg1 : WORD %% +#if (defined(__WXGTK__) || defined(__WXMOTIF__)) && !defined(NO_CONFIGURE) +#include "lexer.c" +#else #include "../common/lex_yy.c" +#endif /* void yyerror(s) @@ -151,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