X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5b077d483bcd47bcd1c3e89a9adc1d6b1a44e046..1e3698e55d7ee45267b69fa8ed5f94886ad47be9:/src/common/parser.y?ds=sidebyside diff --git a/src/common/parser.y b/src/common/parser.y index d9ae9b194b..ee3db0f8ec 100644 --- a/src/common/parser.y +++ b/src/common/parser.y @@ -1,4 +1,5 @@ %{ +#include "wx/setup.h" #include #ifdef _MSC_VER #include @@ -27,12 +28,7 @@ void yyerror(char *); /* You may need to put /DLEX_SCANNER in your makefile * if you're using LEX! */ -#ifdef LEX_SCANNER -/* int yyoutput(int); */ void yyoutput(int); -#else -void yyoutput(int); -#endif #if defined(__cplusplus) || defined(__STDC__) #if defined(__cplusplus) && defined(__EXTERN_C__) @@ -124,7 +120,7 @@ arg1 : WORD %% -#if (defined(__WXGTK__) || defined(__WXMOTIF__)) && !defined(NO_CONFIGURE) +#if (defined(__WXGTK__) || defined(__WXWINE__) || defined(__WXMOTIF__)) && !defined(NO_CONFIGURE) #include "lexer.c" #else #if (defined(__MWERKS__)) @@ -161,7 +157,7 @@ void yyerror(char *s) * to test */ -#ifndef __SC__ +#if !defined(__SC__) && !defined(__GNUWIN32__) #ifdef USE_DEFINE #ifndef yywrap #define yywrap() 1