Fix noreturn attribute detection (#555)

This commit is contained in:
Victor Zverovich 2017-08-20 09:39:28 -07:00
parent 14d8534900
commit 37eb419af2

View File

@ -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