Fix g++ version test in the previous commit.

sUse the correct __GNUC_MINOR__ instead of the wrongly autocompleted
__GLIBC_MINOR__.
This commit is contained in:
Vadim Zeitlin
2015-06-21 02:42:34 +02:00
parent 052e598d09
commit d5fda9d69b

View File

@@ -382,7 +382,7 @@ void
// code in this function and make all the loops below infinite when using -O2, // code in this function and make all the loops below infinite when using -O2,
// so we need to turn off optimizations for it to allow the tests to run at // so we need to turn off optimizations for it to allow the tests to run at
// all. // all.
#if __GNUC__ == 4 && __GLIBC_MINOR__ == 8 && __GNUC_PATCHLEVEL__ < 3 #if __GNUC__ == 4 && __GNUC_MINOR__ == 8 && __GNUC_PATCHLEVEL__ < 3
__attribute__((optimize("O0"))) __attribute__((optimize("O0")))
#endif // g++ 4.8.[012] #endif // g++ 4.8.[012]
#endif // g++ #endif // g++