From 43a68dcd2a48474383e7457c2b8a1b869ea08cfa Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Thu, 10 Oct 2024 20:32:28 -0500 Subject: [PATCH] Include windows.h for atomics always in capi.c --- src/core/capi.c | 6 ++++-- 1 file 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 -#else -#include #endif #endif +#ifdef JANET_WINDOWS +#include +#endif + #ifdef JANET_USE_STDATOMIC #include /* We don't need stdatomic on most compilers since we use compiler builtins for atomic operations.