1
0
mirror of https://github.com/janet-lang/janet synced 2025-01-21 04:36:52 +00:00

Include windows.h for atomics always in capi.c

This commit is contained in:
Calvin Rose 2024-10-10 20:32:28 -05:00
parent 3d93028088
commit 43a68dcd2a

View File

@ -31,11 +31,13 @@
#ifndef JANET_SINGLE_THREADED #ifndef JANET_SINGLE_THREADED
#ifndef JANET_WINDOWS #ifndef JANET_WINDOWS
#include <pthread.h> #include <pthread.h>
#else
#include <windows.h>
#endif #endif
#endif #endif
#ifdef JANET_WINDOWS
#include <windows.h>
#endif
#ifdef JANET_USE_STDATOMIC #ifdef JANET_USE_STDATOMIC
#include <stdatomic.h> #include <stdatomic.h>
/* We don't need stdatomic on most compilers since we use compiler builtins for atomic operations. /* We don't need stdatomic on most compilers since we use compiler builtins for atomic operations.