Work around clang pretending to be GCC 4.2. Require clang 2.9

This commit is contained in:
PKEuS 2013-10-27 13:34:05 +01:00
parent 0db50dc0f6
commit 9790e09e2d
1 changed files with 6 additions and 2 deletions

View File

@ -99,9 +99,13 @@ int main(int argc, char* argv[])
// Warn about deprecated compilers
#ifdef __GNUC__
#ifdef __clang
# if ( __clang_major__ < 2 || ( __clang_major__ == 2 && __clang_minor__ < 9))
# warning "Using Clang 2.8 or earlier. Support for this version will be removed soon."
# endif
#elif defined(__GNUC__)
# if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4))
# warning "Using GCC 4.4 or earlier. Support for this version will be removed soon."
# warning "Using GCC 4.3 or earlier. Support for this version will be removed soon."
# endif
#elif defined(_MSC_VER)
# if (_MSC_VER < 1600)