From 6618b5bf0f245c660d73c9b5823d37a7365534ca Mon Sep 17 00:00:00 2001 From: Bastian Mueller Date: Sat, 22 Jun 2024 11:10:27 -0700 Subject: [PATCH] only use __has_extension if defined --- w2c2/w2c2_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/w2c2/w2c2_base.h b/w2c2/w2c2_base.h index 2e50444..2eb1f1c 100644 --- a/w2c2/w2c2_base.h +++ b/w2c2/w2c2_base.h @@ -1105,7 +1105,7 @@ typedef struct wasmModuleInstance { #ifdef _MSC_VER #define WASM_ATOMICS_MSVC -#elif defined(__GNUC__) && (GCC_VERSION >= 40700 || (defined(__clang__) && __has_extension(c_atomic))) +#elif defined(__GNUC__) && (GCC_VERSION >= 40700 || (defined(__clang__) && defined(__has_extension) && __has_extension(c_atomic))) #define WASM_ATOMICS_GCC #endif