X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=functions%2Fstdio%2Fftell.c;h=441c9fc84c4d45edccd5964a943a482df0c125ca;hp=74bb902407a4672dfcb3c4beacc8519b16ab11ab;hb=0e35e82c5e9a0804864839e8fc0e985b1ae41f07;hpb=4fe88a1c445105a96d08b808831d6fc7480a211d diff --git a/functions/stdio/ftell.c b/functions/stdio/ftell.c index 74bb902..441c9fc 100644 --- a/functions/stdio/ftell.c +++ b/functions/stdio/ftell.c @@ -13,7 +13,7 @@ #ifndef REGTEST -long int ftell_unlocked( struct _PDCLIB_file_t * stream ) +long int ftell_unlocked( FILE * stream ) { uint_fast64_t off64 = _PDCLIB_ftell64_unlocked( stream ); @@ -26,7 +26,7 @@ long int ftell_unlocked( struct _PDCLIB_file_t * stream ) return off64; } -long int ftell( struct _PDCLIB_file_t * stream ) +long int ftell( FILE * stream ) { flockfile( stream ); long int off = ftell_unlocked( stream ); @@ -38,8 +38,10 @@ long int ftell( struct _PDCLIB_file_t * stream ) #ifdef TEST #include <_PDCLIB_test.h> - #include +#ifndef REGTEST +#include <_PDCLIB_io.h> +#endif int main( void ) {