From: Vadim Zeitlin Date: Sun, 28 Jun 2009 17:32:20 +0000 (+0000) Subject: don't include wx/msw/winundef.h when including wx/defs.h from C code (closes #10910) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ceceef4c05153c0e83669fa14bf6f15645591f55 don't include wx/msw/winundef.h when including wx/defs.h from C code (closes #10910) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/defs.h b/include/wx/defs.h index 633ddf1147..18b75a8d6f 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -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 */