From 486ed00cfe8fc77bee6fd976519d4ec0550488a3 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Sun, 17 Nov 2002 20:22:03 +0000 Subject: [PATCH] Currently just setting wxUSE_PROLOGIO=0 in include/wx/msw/setup0.h causes a link failure (when compiling a DLL) because the wxr parser references compiled-out subroutines. This patch fixes that. It is "correct" based on the fact that Win32 compilers can cope with C++ comments in C sources, hence #including setup.h works. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17892 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/dosyacc.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/common/dosyacc.c b/src/common/dosyacc.c index a773cce6ef..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 @@ -526,3 +534,5 @@ yyabort: yyaccept: return (0); } + +#endif /* wxUSE_PROLOGIO */