From 0bd100d7cca8d9b333a309448c2847b3dbce4a06 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 4 Mar 2020 03:23:42 -0500 Subject: compile with c=AMD1 and POSIX.2 --- src/stdio/fgetc.c | 4 ++-- src/stdio/popen.c | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src/stdio') diff --git a/src/stdio/fgetc.c b/src/stdio/fgetc.c index ae1f529a..08fe4e64 100644 --- a/src/stdio/fgetc.c +++ b/src/stdio/fgetc.c @@ -1,8 +1,8 @@ #include #include "_stdio.h" -#ifndef _POSIX_C_SOURCE -#define getc_unlocked(...) 0 +#if !defined _POSIX_C_SOURCE || _POSIX_C_SOURCE < 199506L +#include "getc_unlocked.c" #endif /** read a character from a file stream **/ diff --git a/src/stdio/popen.c b/src/stdio/popen.c index 201800a7..04918003 100644 --- a/src/stdio/popen.c +++ b/src/stdio/popen.c @@ -8,6 +8,10 @@ #include "nonstd/assert.h" #include "_stdio.h" +#ifdef __STDC_VERSION__ +#include "wchar.h" +#endif + FILE * popen(const char * command, const char * mode) { ASSERT_NONNULL(command); -- cgit v1.2.1