From: Harco de Hilster Date: Mon, 19 Jul 1999 17:17:59 +0000 (+0000) Subject: added extra #if case at the end for building using gnuwin and configure X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/089989960fedc145ac47a1496f104554fe038088 added extra #if case at the end for building using gnuwin and configure (assuming that you're using a gnu flex prog) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/parser.y b/src/common/parser.y index ee3db0f8ec..65ef760816 100644 --- a/src/common/parser.y +++ b/src/common/parser.y @@ -157,7 +157,9 @@ void yyerror(char *s) * to test */ -#if !defined(__SC__) && !defined(__GNUWIN32__) +/* 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 @@ -165,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