diff tools/packed.c @ 1108:5a8d29b88431

More fixes.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 04 Mar 2015 00:50:53 +0200
parents d0f80f6a0c65
children c1583a2278ec
line wrap: on
line diff
--- a/tools/packed.c	Wed Mar 04 00:49:47 2015 +0200
+++ b/tools/packed.c	Wed Mar 04 00:50:53 2015 +0200
@@ -211,7 +211,7 @@
     }
 
     // Write PACK header
-    if (DM_FSEEK64(pack->file, 0, SEEK_SET) != 0)
+    if (fseeko(pack->file, 0, SEEK_SET) != 0)
         return DMERR_FSEEK;
 
     if (!dm_fwrite_str(pack->file, (Uint8 *) & hdr.ident, sizeof(hdr.ident)) ||
@@ -221,7 +221,7 @@
         return DMERR_FWRITE;
 
     // Write the directory
-    if (DM_FSEEK64(pack->file, hdr.dirOffset, SEEK_SET) != 0)
+    if (fseeko(pack->file, hdr.dirOffset, SEEK_SET) != 0)
         return DMERR_FSEEK;
 
     node = pack->entries;
@@ -295,7 +295,7 @@
     }
 
     // Seek to the position
-    if (DM_FSEEK64(pack->file, startOffs, SEEK_SET) != 0)
+    if (fseeko(pack->file, startOffs, SEEK_SET) != 0)
         return DMERR_INVALID;
 
     // Read file data
@@ -413,7 +413,7 @@
         return DMERR_FOPEN;
 
     // Seek to the position
-    if (DM_FSEEK64(pack->file, entry->offset, SEEK_SET) != 0)
+    if (fseeko(pack->file, entry->offset, SEEK_SET) != 0)
         return DMERR_FSEEK;
 
     // Open destination file