diff options
author | Jean-Louis Leroy <jleroy9@bloomberg.net> | 2015-04-13 13:45:16 -0400 |
---|---|---|
committer | Jean-Louis Leroy <jleroy9@bloomberg.net> | 2015-09-03 15:11:09 -0400 |
commit | d49516bc99e4c4f6e844757ba9573abffed04c37 (patch) | |
tree | 5f94e1c308a102a6cf23ddc987260fb0ada1f1af /include/benchmark | |
parent | 693967fe190e92448d55f39a07e80d435185f0a8 (diff) | |
download | google-benchmark-d49516bc99e4c4f6e844757ba9573abffed04c37.tar.gz |
Make it compile with Visual Studio 2013.
Diffstat (limited to 'include/benchmark')
-rw-r--r-- | include/benchmark/macros.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/benchmark/macros.h b/include/benchmark/macros.h index 5e75ed3..3e9540e 100644 --- a/include/benchmark/macros.h +++ b/include/benchmark/macros.h @@ -27,12 +27,16 @@ #if defined(__GNUC__) # define BENCHMARK_UNUSED __attribute__((unused)) # define BENCHMARK_ALWAYS_INLINE __attribute__((always_inline)) +# define BENCHMARK_NOEXCEPT noexcept #elif defined(_MSC_VER) && !defined(__clang__) # define BENCHMARK_UNUSED # define BENCHMARK_ALWAYS_INLINE __forceinline +# define BENCHMARK_NOEXCEPT +# define __func__ __FUNCTION__ #else # define BENCHMARK_UNUSED # define BENCHMARK_ALWAYS_INLINE +# define BENCHMARK_NOEXCEPT #endif #if defined(__GNUC__) |