Fix wxCHECK_MINGW32_VERSION() definition.
Include _mingw.h before testing for __MINGW32_MAJOR_VERSION as it's only defined in that header. Closes #15696. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -135,12 +135,15 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This macro can be used to check that the version of mingw32 compiler is
|
This macro can be used to check that the version of mingw32 CRT is at least
|
||||||
at least maj.min
|
maj.min
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Check for Mingw runtime version: */
|
/* Check for Mingw runtime version: */
|
||||||
#if defined(__MINGW32_MAJOR_VERSION) && defined(__MINGW32_MINOR_VERSION)
|
#ifdef __MINGW32__
|
||||||
|
/* Include the header defining __MINGW32_{MAJ,MIN}OR_VERSION */
|
||||||
|
#include <_mingw.h>
|
||||||
|
|
||||||
#define wxCHECK_MINGW32_VERSION( major, minor ) \
|
#define wxCHECK_MINGW32_VERSION( major, minor ) \
|
||||||
( ( ( __MINGW32_MAJOR_VERSION > (major) ) \
|
( ( ( __MINGW32_MAJOR_VERSION > (major) ) \
|
||||||
|| ( __MINGW32_MAJOR_VERSION == (major) && __MINGW32_MINOR_VERSION >= (minor) ) ) )
|
|| ( __MINGW32_MAJOR_VERSION == (major) && __MINGW32_MINOR_VERSION >= (minor) ) ) )
|
||||||
|
Reference in New Issue
Block a user