]> pd.if.org Git - pdclib.old/blobdiff - functions/stdio/fgetc.c
Minimize the amount of internal definitions which get exposed via the user-visible...
[pdclib.old] / functions / stdio / fgetc.c
index 61f52fdd4208a84a3000a1e937619d92191b85b7..56e96f5eca481fbdf88136fe42ffa5c03d29dcf5 100644 (file)
@@ -9,10 +9,9 @@
 #include <stdio.h>
 
 #ifndef REGTEST
+#include <_PDCLIB_io.h>
 
-#include <_PDCLIB_glue.h>
-
-int fgetc_unlocked( struct _PDCLIB_file_t * stream )
+int fgetc_unlocked( FILE * stream )
 {
     if ( _PDCLIB_prepread( stream ) == EOF )
     {
@@ -26,7 +25,7 @@ int fgetc_unlocked( struct _PDCLIB_file_t * stream )
     return n == 0 ? EOF : (unsigned char) c;
 }
 
-int fgetc( struct _PDCLIB_file_t * stream )
+int fgetc( FILE * stream )
 {
     flockfile( stream );
     int c = fgetc_unlocked( stream );