Win32 fixes.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 23 Sep 2002 18:35:12 +0000
changeset 494 364e564a26e2
parent 493 4eaefa58e259
child 495 51ca637c3a28
Win32 fixes.
archivers/qpak.c
archivers/zip.c
physfs.dsp
--- a/archivers/qpak.c	Mon Sep 23 18:33:57 2002 +0000
+++ b/archivers/qpak.c	Mon Sep 23 18:35:12 2002 +0000
@@ -192,7 +192,7 @@
 static int qpak_loadEntries(void *fh, int dirOffset, int numEntries,
                             QPAKentry *entries)
 {
-    PHYSFS_uint32 i;
+    PHYSFS_sint32 i;
 
     BAIL_IF_MACRO(__PHYSFS_platformSeek(fh, dirOffset) == 0, NULL, 0);
 
@@ -403,7 +403,7 @@
 static int qpak_populateDirectories(QPAKentry *entries, int numEntries,
                                     QPAKdirectory *root)
 {
-    PHYSFS_uint32 i;
+    PHYSFS_sint32 i;
     QPAKentry *entry = entries;
 
     for (i = 0; i < numEntries; i++, entry++)
--- a/archivers/zip.c	Mon Sep 23 18:33:57 2002 +0000
+++ b/archivers/zip.c	Mon Sep 23 18:35:12 2002 +0000
@@ -1293,7 +1293,6 @@
 static int ZIP_isDirectory(DirHandle *h, const char *name, int *fileExists)
 {
     ZIPinfo *info = (ZIPinfo *) h->opaque;
-    PHYSFS_sint32 pos;
     int isDir;
     ZIPentry *entry = zip_find_entry(info, name, &isDir);
 
--- a/physfs.dsp	Mon Sep 23 18:33:57 2002 +0000
+++ b/physfs.dsp	Mon Sep 23 18:35:12 2002 +0000
@@ -44,7 +44,7 @@
 # PROP Ignore_Export_Lib 0
 # PROP Target_Dir ""
 # ADD BASE CPP /nologo /MDd /W3 /WX /Gm /ZI /Od /I "." /I "zlibwin32" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "PHYSFS_EXPORTS" /D "PHYSFS_SUPPORTS_GRP" /D "PHYSFS_SUPPORTS_ZIP" /YX /FD /GZ /c
-# ADD CPP /nologo /MDd /Ze /W3 /WX /Gm /ZI /Od /I "." /I "zlib114" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "PHYSFS_EXPORTS" /D "PHYSFS_SUPPORTS_GRP" /D "PHYSFS_SUPPORTS_ZIP" /YX /FD /GZ /c
+# ADD CPP /nologo /MDd /W3 /WX /Gm /ZI /Od /I "." /I "zlib114" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "PHYSFS_EXPORTS" /D "PHYSFS_SUPPORTS_GRP" /D "PHYSFS_SUPPORTS_ZIP" /D "PHYSFS_SUPPORTS_QPAK" /YX /FD /GZ /c
 # SUBTRACT CPP /X
 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
@@ -74,7 +74,7 @@
 # PROP Ignore_Export_Lib 0
 # PROP Target_Dir ""
 # ADD BASE CPP /nologo /MD /W3 /WX /O2 /I "." /I "zlibwin32" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "PHYSFS_EXPORTS" /D "PHYSFS_SUPPORTS_GRP" /D "PHYSFS_SUPPORTS_ZIP" /YX /FD /c
-# ADD CPP /nologo /MD /Ze /W3 /WX /O2 /I "." /I "zlib114" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "PHYSFS_EXPORTS" /D "PHYSFS_SUPPORTS_GRP" /D "PHYSFS_SUPPORTS_ZIP" /YX /FD /c
+# ADD CPP /nologo /MD /W3 /WX /O2 /I "." /I "zlib114" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "PHYSFS_EXPORTS" /D "PHYSFS_SUPPORTS_GRP" /D "PHYSFS_SUPPORTS_ZIP" /D "PHYSFS_SUPPORTS_QPAK" /YX /FD /c
 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
 # ADD BASE RSC /l 0x409 /d "NDEBUG"
@@ -153,6 +153,10 @@
 # End Source File
 # Begin Source File
 
+SOURCE=.\archivers\qpak.c
+# End Source File
+# Begin Source File
+
 SOURCE=.\zlib114\trees.c
 # End Source File
 # Begin Source File