Remove all feature test macros from janet.h

This should help improve compatibility with other C code.
This commit is contained in:
Calvin Rose 2019-12-30 15:12:17 -05:00
parent 48fcd927ab
commit 2ba4337e6f
2 changed files with 5 additions and 2 deletions

View File

@ -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>

View File

@ -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 */