1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-25 04:37:42 +00:00
Move _POSIX_C_SOURCE to internal header.
This commit is contained in:
Calvin Rose
2019-12-30 12:23:22 -05:00
parent a964a95c1e
commit 407d8af026
3 changed files with 6 additions and 2 deletions

View File

@@ -30,6 +30,11 @@
#include <janet.h>
#endif
/* For internal usage */
#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200112L
#endif
/* Handle runtime errors */
#ifndef janet_exit
#include <stdio.h>