diff --git a/include/wx/msw/wrapwin.h b/include/wx/msw/wrapwin.h index 869cd470f0..3f7ae7d45f 100644 --- a/include/wx/msw/wrapwin.h +++ b/include/wx/msw/wrapwin.h @@ -27,6 +27,10 @@ #define NOMINMAX #endif // NOMINMAX +// Disable any warnings inside Windows headers. +#ifdef __VISUALC__ + #pragma warning(push, 1) +#endif // When the application wants to use (this is required for IPv6 // support, for example), we must include it before winsock.h, and as windows.h @@ -38,12 +42,8 @@ #ifndef _WINSOCK_DEPRECATED_NO_WARNINGS #define _WINSOCK_DEPRECATED_NO_WARNINGS #endif - #include -#endif -// Disable any warnings inside Windows headers. -#ifdef __VISUALC__ - #pragma warning(push, 1) + #include #endif #include