Skip to content

Commit 93f8df5

Browse files
committed
fix: fix 32 bit compile.
1 parent 52a4fb2 commit 93f8df5

File tree

1 file changed

+6
-6
lines changed
  • bridge/third_party/quickjs/include/quickjs

1 file changed

+6
-6
lines changed

bridge/third_party/quickjs/include/quickjs/quickjs.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@
3232
extern "C" {
3333
#endif
3434

35+
/* define to include Atomics.* operations which depend on the OS
36+
threads */
37+
#if !defined(EMSCRIPTEN)
38+
#define CONFIG_ATOMICS
39+
#endif
40+
3541
#if defined(__GNUC__) || defined(__clang__)
3642
#define js_likely(x) __builtin_expect(!!(x), 1)
3743
#define js_unlikely(x) __builtin_expect(!!(x), 0)
@@ -188,12 +194,6 @@ static inline JS_BOOL JS_VALUE_IS_NAN(JSValue v) {
188194

189195
#else /* !JS_NAN_BOXING */
190196

191-
/* define to include Atomics.* operations which depend on the OS
192-
threads */
193-
#if !defined(EMSCRIPTEN)
194-
#define CONFIG_ATOMICS
195-
#endif
196-
197197
typedef union JSValueUnion {
198198
int32_t int32;
199199
double float64;

0 commit comments

Comments
 (0)