X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=functions%2Fstdio%2Ffgetc.c;h=114ab975e2e9b928e7154bd04a41ca7ce2ae4697;hp=56e96f5eca481fbdf88136fe42ffa5c03d29dcf5;hb=b5b6c4a890795ea76f9b92b817b0a83c6bb4862c;hpb=aa8b812cace09efe5e21f191761a5258b266b87b diff --git a/functions/stdio/fgetc.c b/functions/stdio/fgetc.c index 56e96f5..114ab97 100644 --- a/functions/stdio/fgetc.c +++ b/functions/stdio/fgetc.c @@ -11,7 +11,7 @@ #ifndef REGTEST #include <_PDCLIB_io.h> -int fgetc_unlocked( FILE * stream ) +int _PDCLIB_fgetc_unlocked( FILE * stream ) { if ( _PDCLIB_prepread( stream ) == EOF ) { @@ -27,9 +27,9 @@ int fgetc_unlocked( FILE * stream ) int fgetc( FILE * stream ) { - flockfile( stream ); - int c = fgetc_unlocked( stream ); - funlockfile( stream ); + _PDCLIB_flockfile( stream ); + int c = _PDCLIB_fgetc_unlocked( stream ); + _PDCLIB_funlockfile( stream ); return c; }