X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=functions%2Fstdio%2Fungetc.c;h=59d2b57f6a00492e895eba080b261c45ac785f92;hp=cc6d1775ae66a50218a94b64e683b56d71ef0d63;hb=b5b6c4a890795ea76f9b92b817b0a83c6bb4862c;hpb=aa8b812cace09efe5e21f191761a5258b266b87b diff --git a/functions/stdio/ungetc.c b/functions/stdio/ungetc.c index cc6d177..59d2b57 100644 --- a/functions/stdio/ungetc.c +++ b/functions/stdio/ungetc.c @@ -11,7 +11,7 @@ #ifndef REGTEST #include <_PDCLIB_io.h> -int ungetc_unlocked( int c, FILE * stream ) +int _PDCLIB_ungetc_unlocked( int c, FILE * stream ) { if ( c == EOF || stream->ungetidx == _PDCLIB_UNGETCBUFSIZE ) { @@ -22,9 +22,9 @@ int ungetc_unlocked( int c, FILE * stream ) int ungetc( int c, FILE * stream ) { - flockfile( stream ); - int r = ungetc_unlocked( c, stream ); - funlockfile( stream); + _PDCLIB_flockfile( stream ); + int r = _PDCLIB_ungetc_unlocked( c, stream ); + _PDCLIB_funlockfile( stream); return r; }