Commit 5224b63c by Eric Fiselier

Fix BENCHMARK_NORETURN on MSVC

parent a85f2a8e
......@@ -7,7 +7,15 @@
# define __has_feature(x) 0
#endif
#if __has_feature(cxx_attributes)
#if defined(__clang__)
# define COMPILER_CLANG
#elif defined(_MSC_VER)
# define COMPILER_MSVC
#elif defined(__GNUC__)
# define COMPILER_GCC
#endif
#if __has_feature(cxx_attributes) || defined(COMPILER_MSVC)
# define BENCHMARK_NORETURN [[noreturn]]
#elif defined(__GNUC__)
# define BENCHMARK_NORETURN __attribute__((noreturn))
......@@ -29,12 +37,5 @@
# define BENCHMARK_OS_LINUX 1
#endif
#if defined(__clang__)
# define COMPILER_CLANG
#elif defined(_MSC_VER)
# define COMPILER_MSVC
#elif defined(__GNUC__)
# define COMPILER_GCC
#endif
#endif // BENCHMARK_INTERNAL_MACROS_H_
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