diff --git a/include/benchmark/benchmark.h b/include/benchmark/benchmark.h index 6be8c12a..a6015b81 100644 --- a/include/benchmark/benchmark.h +++ b/include/benchmark/benchmark.h @@ -292,7 +292,7 @@ BENCHMARK_UNUSED static int stream_init_anchor = InitializeStreams(); #if (!defined(__GNUC__) && !defined(__clang__)) || defined(__pnacl__) || \ - defined(EMSCRIPTN) + defined(__EMSCRIPTEN__) # define BENCHMARK_HAS_NO_INLINE_ASSEMBLY #endif diff --git a/src/internal_macros.h b/src/internal_macros.h index f7b9203e..edb8a5c0 100644 --- a/src/internal_macros.h +++ b/src/internal_macros.h @@ -57,7 +57,7 @@ #define BENCHMARK_OS_LINUX 1 #elif defined(__native_client__) #define BENCHMARK_OS_NACL 1 -#elif defined(EMSCRIPTEN) +#elif defined(__EMSCRIPTEN__) #define BENCHMARK_OS_EMSCRIPTEN 1 #elif defined(__rtems__) #define BENCHMARK_OS_RTEMS 1