diff options
| author | 2024-10-10 20:32:28 -0500 | |
|---|---|---|
| committer | 2024-10-10 20:32:28 -0500 | |
| commit | 43a68dcd2a48474383e7457c2b8a1b869ea08cfa (patch) | |
| tree | 3dd3af9a83c3d2de52f846e23087d8d8f2646aff | |
| parent | Test bundle (diff) | |
Include windows.h for atomics always in capi.c
| -rw-r--r-- | src/core/capi.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/capi.c b/src/core/capi.c index d59a27e0..f7c6b3e2 100644 --- a/src/core/capi.c +++ b/src/core/capi.c @@ -31,11 +31,13 @@ #ifndef JANET_SINGLE_THREADED #ifndef JANET_WINDOWS #include <pthread.h> -#else -#include <windows.h> #endif #endif +#ifdef JANET_WINDOWS +#include <windows.h> +#endif + #ifdef JANET_USE_STDATOMIC #include <stdatomic.h> /* We don't need stdatomic on most compilers since we use compiler builtins for atomic operations. |
