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:
Jacek Caban 2012-01-26 12:37:19 +00:00
parent 7cc84e02ca
commit be6c649191
2 changed files with 15 additions and 15 deletions

View File

@ -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

View File

@ -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)))