From d5fda9d69b6f1a242f6bedae4e22006851929d54 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 21 Jun 2015 02:42:34 +0200 Subject: [PATCH] Fix g++ version test in the previous commit. sUse the correct __GNUC_MINOR__ instead of the wrongly autocompleted __GLIBC_MINOR__. --- tests/hashes/hashes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hashes/hashes.cpp b/tests/hashes/hashes.cpp index 9c84ec01c9..2083c74a37 100644 --- a/tests/hashes/hashes.cpp +++ b/tests/hashes/hashes.cpp @@ -382,7 +382,7 @@ void // 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 // all. -#if __GNUC__ == 4 && __GLIBC_MINOR__ == 8 && __GNUC_PATCHLEVEL__ < 3 +#if __GNUC__ == 4 && __GNUC_MINOR__ == 8 && __GNUC_PATCHLEVEL__ < 3 __attribute__((optimize("O0"))) #endif // g++ 4.8.[012] #endif // g++