1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-25 01:37:19 +00:00

Update feature test macro in line.c

This commit is contained in:
Calvin Rose 2019-12-30 20:24:40 -05:00
parent 9dd152dc28
commit f361830cb2
2 changed files with 7 additions and 3 deletions

View File

@ -143,7 +143,7 @@ static Janet cfun_io_temp(int32_t argc, Janet *argv) {
FILE *tmp = tmpfile();
if (!tmp)
janet_panicf("unable to create temporary file - %s", strerror(errno));
return janet_makefile(tmp, JANET_FILE_WRITE|JANET_FILE_READ|JANET_FILE_BINARY);
return janet_makefile(tmp, JANET_FILE_WRITE | JANET_FILE_READ | JANET_FILE_BINARY);
}
static Janet cfun_io_fopen(int32_t argc, Janet *argv) {

View File

@ -20,6 +20,10 @@
* IN THE SOFTWARE.
*/
#if !defined(_POSIX_C_SOURCE)
#define _POSIX_C_SOURCE 200112L
#endif
#ifndef JANET_AMALG
#include "line.h"
#endif