From 37eb419af260898b9543697db4f703cdf670c108 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 20 Aug 2017 09:39:28 -0700 Subject: [PATCH] Fix noreturn attribute detection (#555) --- fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fmt/format.h b/fmt/format.h index cd53b621..37a4c24f 100644 --- a/fmt/format.h +++ b/fmt/format.h @@ -142,7 +142,7 @@ typedef __int64 intmax_t; // Use the compiler's attribute noreturn #if defined(__MINGW32__) || defined(__MINGW64__) # define FMT_NORETURN __attribute__((noreturn)) -#elif FMT_HAS_CPP_ATTRIBUTE(noreturn) +#elif FMT_HAS_CPP_ATTRIBUTE(noreturn) && __cplusplus >= 201103L # define FMT_NORETURN [[noreturn]] #else # define FMT_NORETURN