Commit f261c680 by Eric Fiselier

Try and add MSVC NORETURN attribute again

parent 756f0699
...@@ -15,10 +15,12 @@ ...@@ -15,10 +15,12 @@
# define COMPILER_GCC # define COMPILER_GCC
#endif #endif
#if __has_feature(cxx_attributes) || defined(COMPILER_MSVC) #if __has_feature(cxx_attributes)
# define BENCHMARK_NORETURN [[noreturn]] # define BENCHMARK_NORETURN [[noreturn]]
#elif defined(__GNUC__) #elif defined(__GNUC__)
# define BENCHMARK_NORETURN __attribute__((noreturn)) # define BENCHMARK_NORETURN __attribute__((noreturn))
#elif defined(COMPILER_MSVC)
# define BENCHMARK_NORETURN __declspec(noreturn)
#else #else
# define BENCHMARK_NORETURN # define BENCHMARK_NORETURN
#endif #endif
......
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