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
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user