X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fftell.c;fp=functions%2Fstdio%2Fftell.c;h=441c9fc84c4d45edccd5964a943a482df0c125ca;hb=0a419d48138f1411d6e3e50a367b9ece5a2cf893;hp=74bb902407a4672dfcb3c4beacc8519b16ab11ab;hpb=702e9008178bdb5c1b123b963868c946537fb7f5;p=pdclib 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 ) {