mirror of
https://github.com/janet-lang/janet
synced 2025-01-11 16:10:27 +00:00
Change feature flags for BSD.
This commit is contained in:
parent
9121feb44f
commit
c903e49a4f
@ -25,8 +25,15 @@
|
|||||||
#ifndef JANET_FEATURES_H_defined
|
#ifndef JANET_FEATURES_H_defined
|
||||||
#define JANET_FEATURES_H_defined
|
#define JANET_FEATURES_H_defined
|
||||||
|
|
||||||
#ifndef _POSIX_C_SOURCE
|
#if defined(__NetBSD__) || defined(__APPLE__) || defined(__OpenBSD__) \
|
||||||
#define _POSIX_C_SOURCE 200809L
|
|| defined(__bsdi__) || defined(__DragonFly__)
|
||||||
|
/* Use BSD soucre on any BSD systems, include OSX */
|
||||||
|
# define _BSD_SOURCE
|
||||||
|
#else
|
||||||
|
/* Use POSIX feature flags */
|
||||||
|
# ifndef _POSIX_C_SOURCE
|
||||||
|
# define _POSIX_C_SOURCE 200809L
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(WIN32) || defined(_WIN32)
|
#if defined(WIN32) || defined(_WIN32)
|
||||||
|
Loading…
Reference in New Issue
Block a user