Skip to content

Commit

Permalink
only use __has_extension if defined
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent committed Jun 22, 2024
1 parent cb253a0 commit 6618b5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion w2c2/w2c2_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6618b5b

Please sign in to comment.