mirror of
				https://github.com/janet-lang/janet
				synced 2025-10-31 07:33:01 +00:00 
			
		
		
		
	Include windows.h for atomics always in capi.c
This commit is contained in:
		| @@ -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. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Calvin Rose
					Calvin Rose