X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/004fd0c8834ca526d335a9294322d9def17ef8a9..a949e8fac2666418b2a6eb15e94959563cf8aad6:/src/common/dosyacc.c diff --git a/src/common/dosyacc.c b/src/common/dosyacc.c index 9515eb878c..9fce511cda 100644 --- a/src/common/dosyacc.c +++ b/src/common/dosyacc.c @@ -1,3 +1,11 @@ +#ifdef WIN32 +/* all Win32 compilers can handle C++ comments, and C++ comments + is the only C++ in setup.h */ +#include "wx/setup.h" +#endif + +#if !defined(wxUSE_PROLOGIO) || wxUSE_PROLOGIO + #ifndef lint static char yysccsid[] = "@(#)yaccpar 1.7 (Berkeley) 09/09/90"; #endif @@ -247,7 +255,10 @@ void yyerror(char *s) #define yywrap() 1 #endif #else -int yywrap() { return 1; } +# if !(defined(__VISAGECPP__) && __IBMC__ >= 400) +/* VA 4.0 thinks this is multiply defined (in lex_yy.c) */ + int yywrap() { return 1; } +# endif #endif #endif #line 247 "y_tab.c" @@ -255,7 +266,7 @@ int yywrap() { return 1; } #define YYACCEPT goto yyaccept #define YYERROR goto yyerrlab int -yyparse() +PROIO_yyparse() { register int yym, yyn, yystate; #if YYDEBUG @@ -523,3 +534,5 @@ yyabort: yyaccept: return (0); } + +#endif /* wxUSE_PROLOGIO */