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 */