diff --git a/include/wx/msw/wrapwin.h b/include/wx/msw/wrapwin.h index 1bbe4f4143..e4ef98a6b6 100644 --- a/include/wx/msw/wrapwin.h +++ b/include/wx/msw/wrapwin.h @@ -34,8 +34,17 @@ #include #endif +// Disable any warnings inside Windows headers. +#ifdef __VISUALC__ + #pragma warning(push, 1) +#endif + #include +#ifdef __VISUALC__ + #pragma warning(pop) +#endif + // #undef the macros defined in winsows.h which conflict with code elsewhere #include "wx/msw/winundef.h"