Don't undefine __WXMSW__ for console mode applications using wxWidgets.
This partially undoes the changes of r73290 by keeping __WXMSW__ defined for the console mode user applications and only undefining it when building wxWidgets itself. This allows the existing code using __WXMSW__ to continue compiling correctly with wxWidgets 3.0. Closes #15579. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75006 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -95,8 +95,13 @@
|
||||
# endif
|
||||
#endif /* __WINDOWS__ */
|
||||
|
||||
/* Don't use widget toolkit specific code in non-GUI code */
|
||||
#if defined(wxUSE_GUI) && !wxUSE_GUI
|
||||
/*
|
||||
Don't use widget toolkit specific code in non-GUI code in the library
|
||||
itself to ensure that the same base library is used for both MSW and GTK
|
||||
ports. But keep __WXMSW__ defined for (console) applications using
|
||||
wxWidgets for compatibility.
|
||||
*/
|
||||
#if defined(WXBUILDING) && defined(wxUSE_GUI) && !wxUSE_GUI
|
||||
# ifdef __WXMSW__
|
||||
# undef __WXMSW__
|
||||
# endif
|
||||
|
Reference in New Issue
Block a user