mirror of
https://github.com/janet-lang/janet
synced 2024-11-29 03:19:54 +00:00
Remove some feature test macros.
_BSD_SOURCE is deprecated and not needed.
This commit is contained in:
parent
f361830cb2
commit
9cb25ad7b1
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user