diff --git a/lib/runtime-c-api/build.rs b/lib/runtime-c-api/build.rs index 7750b00813d..5897001b043 100644 --- a/lib/runtime-c-api/build.rs +++ b/lib/runtime-c-api/build.rs @@ -22,7 +22,7 @@ fn main() { #endif #endif -#if defined(GCC) || defined(__clang__) +#if defined(GCC) || defined(__GNUC__) || defined(__clang__) #if defined(__x86_64__) #define ARCH_X86_64 #endif diff --git a/lib/runtime-c-api/wasmer.h b/lib/runtime-c-api/wasmer.h index 836a41df215..40a265cff3b 100644 --- a/lib/runtime-c-api/wasmer.h +++ b/lib/runtime-c-api/wasmer.h @@ -8,7 +8,7 @@ #endif #endif -#if defined(GCC) || defined(__clang__) +#if defined(GCC) || defined(__GNUC__) || defined(__clang__) #if defined(__x86_64__) #define ARCH_X86_64 #endif diff --git a/lib/runtime-c-api/wasmer.hh b/lib/runtime-c-api/wasmer.hh index 79c350d6080..b437edd4be0 100644 --- a/lib/runtime-c-api/wasmer.hh +++ b/lib/runtime-c-api/wasmer.hh @@ -8,7 +8,7 @@ #endif #endif -#if defined(GCC) || defined(__clang__) +#if defined(GCC) || defined(__GNUC__) || defined(__clang__) #if defined(__x86_64__) #define ARCH_X86_64 #endif