Fix for GCC 4.7 not supporting thread_local C++11 feature
authorRafal Krypa <r.krypa@samsung.com>
Wed, 13 Jul 2016 14:20:16 +0000 (16:20 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Fri, 29 Jul 2016 08:45:24 +0000 (10:45 +0200)
It must be at least GCC 4.8 to use C++11 thread_local specifier.
Bump GCC version for C++11 workarounds to 4.8.

Change-Id: I1f96d307aec12aae87bc0749ab2c5d1acb60e765

include/logger/config.hpp

index 753430e..910a412 100644 (file)
 #endif // _GLIBCXX_USE_SCHED_YIELD
 #endif // GCC_VERSION < 40800
 
-#if GCC_VERSION < 40700
-// Those appeared in 4.7 with full c++11 support
+#if GCC_VERSION < 40800
+// Those appeared in 4.8 with full c++11 support
 #define final
 #define override
 #define thread_local __thread  // use GCC extension instead of C++11
 #define steady_clock monotonic_clock
-#endif // GCC_VERSION < 40700
+#endif // GCC_VERSION < 40800
 
 #endif // GCC_VERSION