]> pd.if.org Git - pdclib.old/blobdiff - functions/stdio/_PDCLIB_ftell64.c
Minimize the amount of internal definitions which get exposed via the user-visible...
[pdclib.old] / functions / stdio / _PDCLIB_ftell64.c
index e0ea368e757e35b81bcdf0d606f7a283520b8971..5be7be50692096453aa3f9f03fe1f6a53c56b56d 100644 (file)
@@ -11,8 +11,9 @@
 #include <limits.h>\r
 \r
 #ifndef REGTEST\r
+#include <_PDCLIB_io.h>\r
 \r
-uint_fast64_t _PDCLIB_ftell64_unlocked( struct _PDCLIB_file_t * stream )\r
+uint_fast64_t _PDCLIB_ftell64_unlocked( FILE * stream )\r
 {\r
     /* ftell() must take into account:\r
        - the actual *physical* offset of the file, i.e. the offset as recognized\r
@@ -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 ) );\r
 }\r
 \r
-uint_fast64_t _PDCLIB_ftell64( struct _PDCLIB_file_t * stream )\r
+uint_fast64_t _PDCLIB_ftell64( FILE * stream )\r
 {\r
   flockfile( stream );\r
   uint_fast64_t pos = _PDCLIB_ftell64_unlocked( stream );\r