mirror of
https://github.com/janet-lang/janet
synced 2025-01-02 20:00:26 +00:00
Include atomics unconditionally.
This commit is contained in:
parent
ae4c266c3c
commit
315a832278
@ -31,11 +31,14 @@
|
|||||||
#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
|
||||||
|
|
||||||
|
/* Even if single threaded, include this for atomics! */
|
||||||
|
#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.
|
||||||
|
Loading…
Reference in New Issue
Block a user