From 2344d192209cf018b573e86130abdedd13cbbe32 Mon Sep 17 00:00:00 2001 From: satk0 Date: Mon, 7 Oct 2024 22:09:21 +0200 Subject: [PATCH] Fix MSVC compilation when atomics experimental feature is not set --- quickjs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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