1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-24 17:27:18 +00:00

features.h: define _DARWIN_C_SOURCE for __APPLE__

This commit is contained in:
Ico Doornekamp 2023-05-15 16:55:09 +02:00
parent ab8c5a0b5f
commit 2a6c615bec

View File

@ -36,6 +36,10 @@
# endif
#endif
#if defined(__APPLE__)
#define _DARWIN_C_SOURCE
#endif
/* Needed for sched.h for cpu count */
#ifdef __linux__
#define _GNU_SOURCE