mirror of
https://git.code.sf.net/p/mingw-w64/mingw-w64
synced 2024-11-23 18:04:18 +08:00
Moved *_PREREQ macros to _mingw_mac.h, where they are used
git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@4765 4407c894-4637-0410-b4f5-ada5f102cad1
This commit is contained in:
parent
7cc84e02ca
commit
be6c649191
@ -57,21 +57,6 @@ limitations in handling dllimport attribute. */
|
||||
# endif /* __declspec */
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
#if defined (__GNUC__) && defined (__GNUC_MINOR__)
|
||||
#define __MINGW_GNUC_PREREQ(major, minor) \
|
||||
(__GNUC__ > (major) \
|
||||
|| (__GNUC__ == (major) && __GNUC_MINOR__ >= (minor)))
|
||||
#else
|
||||
#define __MINGW_GNUC_PREREQ(major, minor) 0
|
||||
#endif
|
||||
|
||||
#if defined (_MSC_VER)
|
||||
#define __MINGW_MSC_PREREQ(major, minor) \
|
||||
(_MSC_VER >= (major * 100 + minor * 10))
|
||||
#else
|
||||
#define __MINGW_MSC_PREREQ(major, minor) 0
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define USE___UUIDOF 1
|
||||
#else
|
||||
|
@ -155,6 +155,21 @@
|
||||
#define __MSABI_LONG(x) x ## l
|
||||
#endif
|
||||
|
||||
#if defined (__GNUC__) && defined (__GNUC_MINOR__)
|
||||
#define __MINGW_GNUC_PREREQ(major, minor) \
|
||||
(__GNUC__ > (major) \
|
||||
|| (__GNUC__ == (major) && __GNUC_MINOR__ >= (minor)))
|
||||
#else
|
||||
#define __MINGW_GNUC_PREREQ(major, minor) 0
|
||||
#endif
|
||||
|
||||
#if defined (_MSC_VER)
|
||||
#define __MINGW_MSC_PREREQ(major, minor) \
|
||||
(_MSC_VER >= (major * 100 + minor * 10))
|
||||
#else
|
||||
#define __MINGW_MSC_PREREQ(major, minor) 0
|
||||
#endif
|
||||
|
||||
#ifdef __MINGW_MSVC_COMPAT_WARNINGS
|
||||
# if __MINGW_GNUC_PREREQ (4, 5)
|
||||
# define __MINGW_ATTRIB_DEPRECATED_STR(X) __attribute__ ((__deprecated__ (X)))
|
||||
|
Loading…
Reference in New Issue
Block a user