From db7364a9b060b54182dc3ee5fe6fe6f5adc121ab Mon Sep 17 00:00:00 2001 From: deadwood Date: Fri, 26 Feb 2021 15:21:00 +0100 Subject: [PATCH] Don't use aliased function getc is an alias to fgetc but aliases are only available in linklibs Using getc here means that getc from stdcio.library was used and FILE structure definitions are not compatible between posixc and stdcio resulting in getc_unlocked function not working. --- compiler/posixc/getc_unlocked.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/posixc/getc_unlocked.c b/compiler/posixc/getc_unlocked.c index e9bb24fa9e..83398f1715 100644 --- a/compiler/posixc/getc_unlocked.c +++ b/compiler/posixc/getc_unlocked.c @@ -45,5 +45,5 @@ ******************************************************************************/ { - return getc(stream); + return fgetc(stream); }