added wxCHECK_GCC_VERSION() macro

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16750 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-08-24 21:28:48 +00:00
parent 33ac313082
commit 44893b87ab

View File

@@ -244,6 +244,20 @@
#define __X__ #define __X__
#endif #endif
/*
This macro can be used to test the gcc version and can be used like this:
#if wxCHECK_GCC_VERSION(3, 1)
... we have gcc 3.1 or later ...
#else
... no gcc at all or gcc < 3.1 ...
#endif
*/
#define wxCHECK_GCC_VERSION( major, minor ) \
( defined(__GNUC__) && defined(__GNUC_MINOR__) \
&& ( ( __GNUC__ > (major) ) \
|| ( __GNUC__ == (major) && __GNUC_MINOR__ >= (minor) ) ) )
/* /*
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 compiler is
at least maj.min at least maj.min