]> git.saurik.com Git - wxWidgets.git/commitdiff
don't include wx/msw/winundef.h when including wx/defs.h from C code (closes #10910)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 Jun 2009 17:32:20 +0000 (17:32 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 Jun 2009 17:32:20 +0000 (17:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/defs.h

index 633ddf114725d90ba34782d9977607c800dfb29b..18b75a8d6f4f2bc729ee202b2c28dd7d21d18cac 100644 (file)
@@ -3163,9 +3163,11 @@ typedef const void* WXWidget;
 /*  This is required because of clashing macros in windows.h, which may be */
 /*  included before or after wxWidgets classes, and therefore must be */
 /*  disabled here before any significant wxWidgets headers are included. */
+#ifdef __cplusplus
 #ifdef __WXMSW__
 #include "wx/msw/winundef.h"
 #endif /* __WXMSW__ */
+#endif /* __cplusplus */
 
 
 /*  include the feature test macros */