X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cd99221a57fcbd89f61a5bbd67fe7da914e09cac..10769d8c47c21fe0ec5034726791a5ad4cf19475:/include/wx/msw/gccpriv.h?ds=sidebyside diff --git a/include/wx/msw/gccpriv.h b/include/wx/msw/gccpriv.h index 1776267b2b..c0e84b250b 100644 --- a/include/wx/msw/gccpriv.h +++ b/include/wx/msw/gccpriv.h @@ -3,11 +3,11 @@ #ifndef _WX_MSW_GCCPRIV_H_ #define _WX_MSW_GCCPRIV_H_ -#if defined( __MINGW32__ ) - //#include <_mingw.h> - #if __MINGW32_MAJOR_VERSION >= 1 - #ifndef HAVE_W32API_H - #define HAVE_W32API_H +#if defined( __MINGW32__ ) && !defined( HAVE_W32API_H ) + #if ( __GNUC__ > 2 ) || ( ( __GNUC__ == 2 ) && ( __GNUC_MINOR__ >= 95 ) ) + #include <_mingw.h> + #if __MINGW32_MAJOR_VERSION >= 1 + #define HAVE_W32API_H #endif #endif #endif