1
0
mirror of https://github.com/janet-lang/janet synced 2025-08-04 13:03:52 +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
#endif #endif
#if defined(__APPLE__)
#define _DARWIN_C_SOURCE
#endif
/* Needed for sched.h for cpu count */ /* Needed for sched.h for cpu count */
#ifdef __linux__ #ifdef __linux__
#define _GNU_SOURCE #define _GNU_SOURCE