summaryrefslogtreecommitdiff
path: root/src/stdio/fgetc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/fgetc.c')
-rw-r--r--src/stdio/fgetc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stdio/fgetc.c b/src/stdio/fgetc.c
index f03fd545..56f1a348 100644
--- a/src/stdio/fgetc.c
+++ b/src/stdio/fgetc.c
@@ -3,8 +3,9 @@
#if !defined _POSIX_C_SOURCE || _POSIX_C_SOURCE < 199506L
#undef getc_unlocked
+#define getc_unlocked fgetc
#include "getc_unlocked.c"
-#endif
+#else
/** read a character from a file stream **/
int fgetc(FILE *stream)
@@ -19,6 +20,8 @@ int fgetc(FILE *stream)
return c;
}
+#endif
+
/***
reads the next character from ARGUMENT(stream) as an
TYPE(unsigned char) converted to an TYPE(int). The file position indicator