mirror of
https://github.com/janet-lang/janet
synced 2025-01-27 23:54:45 +00:00
Remove all feature test macros from janet.h
This should help improve compatibility with other C code.
This commit is contained in:
parent
48fcd927ab
commit
2ba4337e6f
@ -31,10 +31,14 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* For internal usage */
|
/* For internal usage */
|
||||||
#ifndef _POSIX_C_SOURCE
|
#if !defined(_POSIX_C_SOURCE)
|
||||||
#define _POSIX_C_SOURCE 200112L
|
#define _POSIX_C_SOURCE 200112L
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(_BSD_SOURCE) && defined(JANET_BSD)
|
||||||
|
#define _BSD_SOURCE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Handle runtime errors */
|
/* Handle runtime errors */
|
||||||
#ifndef janet_exit
|
#ifndef janet_exit
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -49,7 +49,6 @@ extern "C" {
|
|||||||
#if defined(__FreeBSD__) || defined(__DragonFly__) || \
|
#if defined(__FreeBSD__) || defined(__DragonFly__) || \
|
||||||
defined(__NetBSD__) || defined(__OpenBSD__)
|
defined(__NetBSD__) || defined(__OpenBSD__)
|
||||||
#define JANET_BSD 1
|
#define JANET_BSD 1
|
||||||
#define _BSD_SOURCE 1
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Check for Mac */
|
/* Check for Mac */
|
||||||
|
Loading…
Reference in New Issue
Block a user