Try and add MSVC NORETURN attribute again

This commit is contained in:
Eric Fiselier 2016-09-03 00:13:20 -06:00
parent 756f069918
commit f261c68074
1 changed files with 3 additions and 1 deletions

View File

@ -15,10 +15,12 @@
# define COMPILER_GCC
#endif
#if __has_feature(cxx_attributes) || defined(COMPILER_MSVC)
#if __has_feature(cxx_attributes)
# define BENCHMARK_NORETURN [[noreturn]]
#elif defined(__GNUC__)
# define BENCHMARK_NORETURN __attribute__((noreturn))
#elif defined(COMPILER_MSVC)
# define BENCHMARK_NORETURN __declspec(noreturn)
#else
# define BENCHMARK_NORETURN
#endif