mirror of
https://github.com/janet-lang/janet
synced 2025-01-13 17:10:27 +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
|
||||
|
||||
/* For internal usage */
|
||||
#ifndef _POSIX_C_SOURCE
|
||||
#if !defined(_POSIX_C_SOURCE)
|
||||
#define _POSIX_C_SOURCE 200112L
|
||||
#endif
|
||||
|
||||
#if !defined(_BSD_SOURCE) && defined(JANET_BSD)
|
||||
#define _BSD_SOURCE 1
|
||||
#endif
|
||||
|
||||
/* Handle runtime errors */
|
||||
#ifndef janet_exit
|
||||
#include <stdio.h>
|
||||
|
@ -49,7 +49,6 @@ extern "C" {
|
||||
#if defined(__FreeBSD__) || defined(__DragonFly__) || \
|
||||
defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
#define JANET_BSD 1
|
||||
#define _BSD_SOURCE 1
|
||||
#endif
|
||||
|
||||
/* Check for Mac */
|
||||
|
Loading…
Reference in New Issue
Block a user