From be8e2100c133f106b678f6f6b4bd90b7a7a57c11 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 15 May 2000 12:26:13 +0000 Subject: [PATCH] fix for yacc compilation on Alpha git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/parser.y | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/common/parser.y b/src/common/parser.y index 141a6280f4..1acd51cc13 100644 --- a/src/common/parser.y +++ b/src/common/parser.y @@ -156,10 +156,12 @@ void yyerror(char *s) * the UNIX flex expects a proper function. */ -/* Not sure if __SC__ is the appropriate thing - * to test - */ - +/* At least on alphaev6-dec-osf4.0e yywrap() must be #define'd */ +#ifdef __ALPHA__ +#ifndef yywrap +#define yywrap() 1 +#endif +#else /* HH: Added test for __WX_SETUP_H__ for gnuwin builds * using configure */ #if !defined(__SC__) && !defined(__GNUWIN32__) @@ -175,3 +177,5 @@ int yywrap() { return 1; } #elif defined(__WX_SETUP_H__) int yywrap() { return 1; } #endif +#endif +