]> pd.if.org Git - pdclib/blobdiff - functions/stdio/_PDCLIB_ftell64.c
PDCLib includes with quotes, not <>.
[pdclib] / functions / stdio / _PDCLIB_ftell64.c
index e0ea368e757e35b81bcdf0d606f7a283520b8971..77ab8723921e6f9513e7b3bba03bd4f36adb7163 100644 (file)
@@ -1,5 +1,3 @@
-/* $Id$ */\r
-\r
 /* _PDCLIB_ftell64( FILE * )\r
 \r
    This file is part of the Public Domain C Library (PDCLib).\r
@@ -11,8 +9,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,18 +37,18 @@ 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
+  _PDCLIB_flockfile( stream );\r
   uint_fast64_t pos = _PDCLIB_ftell64_unlocked( stream );\r
-  funlockfile( stream );\r
+  _PDCLIB_funlockfile( stream );\r
   return pos;\r
 }\r
 \r
 #endif\r
 \r
 #ifdef TEST\r
-#include <_PDCLIB_test.h>\r
+#include "_PDCLIB_test.h"\r
 \r
 #include <stdlib.h>\r
 \r