X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=functions%2Fstdio%2F_PDCLIB_ftell64.c;h=5be7be50692096453aa3f9f03fe1f6a53c56b56d;hp=e0ea368e757e35b81bcdf0d606f7a283520b8971;hb=0e35e82c5e9a0804864839e8fc0e985b1ae41f07;hpb=4fe88a1c445105a96d08b808831d6fc7480a211d diff --git a/functions/stdio/_PDCLIB_ftell64.c b/functions/stdio/_PDCLIB_ftell64.c index e0ea368..5be7be5 100644 --- a/functions/stdio/_PDCLIB_ftell64.c +++ b/functions/stdio/_PDCLIB_ftell64.c @@ -11,8 +11,9 @@ #include #ifndef REGTEST +#include <_PDCLIB_io.h> -uint_fast64_t _PDCLIB_ftell64_unlocked( struct _PDCLIB_file_t * stream ) +uint_fast64_t _PDCLIB_ftell64_unlocked( FILE * stream ) { /* ftell() must take into account: - the actual *physical* offset of the file, i.e. the offset as recognized @@ -38,7 +39,7 @@ uint_fast64_t _PDCLIB_ftell64_unlocked( struct _PDCLIB_file_t * stream ) return ( stream->pos.offset - ( ( (int)stream->bufend - (int)stream->bufidx ) + (int)stream->ungetidx ) ); } -uint_fast64_t _PDCLIB_ftell64( struct _PDCLIB_file_t * stream ) +uint_fast64_t _PDCLIB_ftell64( FILE * stream ) { flockfile( stream ); uint_fast64_t pos = _PDCLIB_ftell64_unlocked( stream );