1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-28 19:19:53 +00:00

Remove some feature test macros.

_BSD_SOURCE is deprecated and not needed.
This commit is contained in:
Calvin Rose 2019-12-30 21:29:52 -05:00
parent f361830cb2
commit 9cb25ad7b1
3 changed files with 8 additions and 6 deletions

View File

@ -25,12 +25,6 @@
#ifndef JANET_FEATURES_H_defined
#define JANET_FEATURES_H_defined
#if !defined(_POSIX_C_SOURCE)
#define _POSIX_C_SOURCE 200112L
#endif
#if !defined(_BSD_SOURCE) && defined(JANET_BSD)
#define _BSD_SOURCE 1
#endif
#endif

View File

@ -23,6 +23,10 @@
#ifndef JANET_LINE_H_defined
#define JANET_LINE_H_defined
#if !defined(_POSIX_C_SOURCE)
#define _POSIX_C_SOURCE 200112L
#endif
#ifndef JANET_AMALG
#include <janet.h>
#endif

View File

@ -20,6 +20,10 @@
* IN THE SOFTWARE.
*/
#if !defined(_POSIX_C_SOURCE)
#define _POSIX_C_SOURCE 200112L
#endif
#ifndef JANET_AMALG
#include <janet.h>
#include "line.h"