diff --git a/quickjs.c b/quickjs.c index 9b1969da..a8a74247 100644 --- a/quickjs.c +++ b/quickjs.c @@ -62,7 +62,7 @@ #define NO_TM_GMTOFF #endif -#if !defined(EMSCRIPTEN) && !defined(__wasi__) +#if !defined(EMSCRIPTEN) && !defined(__wasi__) && !defined(__STDC_NO_ATOMICS__) #include "quickjs-c-atomics.h" #define CONFIG_ATOMICS #endif