Commit 37eb419a authored by Victor Zverovich's avatar Victor Zverovich

Fix noreturn attribute detection (#555)

parent 14d85349
...@@ -142,7 +142,7 @@ typedef __int64 intmax_t; ...@@ -142,7 +142,7 @@ typedef __int64 intmax_t;
// Use the compiler's attribute noreturn // Use the compiler's attribute noreturn
#if defined(__MINGW32__) || defined(__MINGW64__) #if defined(__MINGW32__) || defined(__MINGW64__)
# define FMT_NORETURN __attribute__((noreturn)) # define FMT_NORETURN __attribute__((noreturn))
#elif FMT_HAS_CPP_ATTRIBUTE(noreturn) #elif FMT_HAS_CPP_ATTRIBUTE(noreturn) && __cplusplus >= 201103L
# define FMT_NORETURN [[noreturn]] # define FMT_NORETURN [[noreturn]]
#else #else
# define FMT_NORETURN # define FMT_NORETURN
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment