1
0
mirror of https://github.com/janet-lang/janet synced 2024-09-20 19:29:37 +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 #ifndef JANET_FEATURES_H_defined
#define JANET_FEATURES_H_defined #define JANET_FEATURES_H_defined
#if !defined(_POSIX_C_SOURCE)
#define _POSIX_C_SOURCE 200112L #define _POSIX_C_SOURCE 200112L
#endif
#if !defined(_BSD_SOURCE) && defined(JANET_BSD)
#define _BSD_SOURCE 1
#endif
#endif #endif

View File

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

View File

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