From 2aa4cd9827da15b6216456ad32831a041e6de8ee Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 16 Nov 2013 07:19:59 -0800 Subject: [PATCH] Fix gcc version check for noexcept. --- format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format.h b/format.h index 0c0d7562..ad129e34 100644 --- a/format.h +++ b/format.h @@ -50,7 +50,7 @@ // Define FMT_USE_NOEXCEPT to make format use noexcept (C++11 feature). #if FMT_USE_NOEXCEPT || \ (defined(__has_feature) && __has_feature(cxx_noexcept)) || \ - (__GNUC__ >= 4 && __GNUC_MINOR__ >= 8) + (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)) # define FMT_NOEXCEPT(expr) noexcept(expr) #else # define FMT_NOEXCEPT(expr)