Bläddra i källkod

Proejct file for minizip library, fixes compilation issues.

Michał W. Urbańczyk 12 år sedan
förälder
incheckning
91a1f0eae5

+ 28 - 45
VCMI_VS11.sln

@@ -40,14 +40,16 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "EmptyAI", "AI\EmptyAI\Empty
 		{B952FFC5-3039-4DE1-9F08-90ACDA483D8F} = {B952FFC5-3039-4DE1-9F08-90ACDA483D8F}
 		{B952FFC5-3039-4DE1-9F08-90ACDA483D8F} = {B952FFC5-3039-4DE1-9F08-90ACDA483D8F}
 	EndProjectSection
 	EndProjectSection
 EndProject
 EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Test", "test\Test.vcxproj", "{BA25F3F0-EB87-4164-AAB9-073C50A3557A}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "minizip", "lib\minizip\minizip.vcxproj", "{AA3CC588-9D08-4178-A1E8-C71561E99723}"
+EndProject
 Global
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|Win32 = Debug|Win32
 		Debug|Win32 = Debug|Win32
 		Debug|x64 = Debug|x64
 		Debug|x64 = Debug|x64
 		RD|Win32 = RD|Win32
 		RD|Win32 = RD|Win32
 		RD|x64 = RD|x64
 		RD|x64 = RD|x64
-		Release|Win32 = Release|Win32
-		Release|x64 = Release|x64
 	EndGlobalSection
 	EndGlobalSection
 	GlobalSection(ProjectConfigurationPlatforms) = postSolution
 	GlobalSection(ProjectConfigurationPlatforms) = postSolution
 		{8355EBA8-65C2-44A4-BC2D-78053E1BF2D6}.Debug|Win32.ActiveCfg = Debug|Win32
 		{8355EBA8-65C2-44A4-BC2D-78053E1BF2D6}.Debug|Win32.ActiveCfg = Debug|Win32
@@ -58,10 +60,6 @@ Global
 		{8355EBA8-65C2-44A4-BC2D-78053E1BF2D6}.RD|Win32.Build.0 = RD|Win32
 		{8355EBA8-65C2-44A4-BC2D-78053E1BF2D6}.RD|Win32.Build.0 = RD|Win32
 		{8355EBA8-65C2-44A4-BC2D-78053E1BF2D6}.RD|x64.ActiveCfg = RD|x64
 		{8355EBA8-65C2-44A4-BC2D-78053E1BF2D6}.RD|x64.ActiveCfg = RD|x64
 		{8355EBA8-65C2-44A4-BC2D-78053E1BF2D6}.RD|x64.Build.0 = RD|x64
 		{8355EBA8-65C2-44A4-BC2D-78053E1BF2D6}.RD|x64.Build.0 = RD|x64
-		{8355EBA8-65C2-44A4-BC2D-78053E1BF2D6}.Release|Win32.ActiveCfg = RD|Win32
-		{8355EBA8-65C2-44A4-BC2D-78053E1BF2D6}.Release|Win32.Build.0 = RD|Win32
-		{8355EBA8-65C2-44A4-BC2D-78053E1BF2D6}.Release|x64.ActiveCfg = RD|x64
-		{8355EBA8-65C2-44A4-BC2D-78053E1BF2D6}.Release|x64.Build.0 = RD|x64
 		{B952FFC5-3039-4DE1-9F08-90ACDA483D8F}.Debug|Win32.ActiveCfg = Debug|Win32
 		{B952FFC5-3039-4DE1-9F08-90ACDA483D8F}.Debug|Win32.ActiveCfg = Debug|Win32
 		{B952FFC5-3039-4DE1-9F08-90ACDA483D8F}.Debug|Win32.Build.0 = Debug|Win32
 		{B952FFC5-3039-4DE1-9F08-90ACDA483D8F}.Debug|Win32.Build.0 = Debug|Win32
 		{B952FFC5-3039-4DE1-9F08-90ACDA483D8F}.Debug|x64.ActiveCfg = Debug|x64
 		{B952FFC5-3039-4DE1-9F08-90ACDA483D8F}.Debug|x64.ActiveCfg = Debug|x64
@@ -70,10 +68,6 @@ Global
 		{B952FFC5-3039-4DE1-9F08-90ACDA483D8F}.RD|Win32.Build.0 = RD|Win32
 		{B952FFC5-3039-4DE1-9F08-90ACDA483D8F}.RD|Win32.Build.0 = RD|Win32
 		{B952FFC5-3039-4DE1-9F08-90ACDA483D8F}.RD|x64.ActiveCfg = RD|x64
 		{B952FFC5-3039-4DE1-9F08-90ACDA483D8F}.RD|x64.ActiveCfg = RD|x64
 		{B952FFC5-3039-4DE1-9F08-90ACDA483D8F}.RD|x64.Build.0 = RD|x64
 		{B952FFC5-3039-4DE1-9F08-90ACDA483D8F}.RD|x64.Build.0 = RD|x64
-		{B952FFC5-3039-4DE1-9F08-90ACDA483D8F}.Release|Win32.ActiveCfg = RD|Win32
-		{B952FFC5-3039-4DE1-9F08-90ACDA483D8F}.Release|Win32.Build.0 = RD|Win32
-		{B952FFC5-3039-4DE1-9F08-90ACDA483D8F}.Release|x64.ActiveCfg = RD|x64
-		{B952FFC5-3039-4DE1-9F08-90ACDA483D8F}.Release|x64.Build.0 = RD|x64
 		{8AF697C3-465E-4910-B31B-576A9ECDB309}.Debug|Win32.ActiveCfg = Debug|Win32
 		{8AF697C3-465E-4910-B31B-576A9ECDB309}.Debug|Win32.ActiveCfg = Debug|Win32
 		{8AF697C3-465E-4910-B31B-576A9ECDB309}.Debug|Win32.Build.0 = Debug|Win32
 		{8AF697C3-465E-4910-B31B-576A9ECDB309}.Debug|Win32.Build.0 = Debug|Win32
 		{8AF697C3-465E-4910-B31B-576A9ECDB309}.Debug|x64.ActiveCfg = Debug|x64
 		{8AF697C3-465E-4910-B31B-576A9ECDB309}.Debug|x64.ActiveCfg = Debug|x64
@@ -82,10 +76,6 @@ Global
 		{8AF697C3-465E-4910-B31B-576A9ECDB309}.RD|Win32.Build.0 = RD|Win32
 		{8AF697C3-465E-4910-B31B-576A9ECDB309}.RD|Win32.Build.0 = RD|Win32
 		{8AF697C3-465E-4910-B31B-576A9ECDB309}.RD|x64.ActiveCfg = RD|x64
 		{8AF697C3-465E-4910-B31B-576A9ECDB309}.RD|x64.ActiveCfg = RD|x64
 		{8AF697C3-465E-4910-B31B-576A9ECDB309}.RD|x64.Build.0 = RD|x64
 		{8AF697C3-465E-4910-B31B-576A9ECDB309}.RD|x64.Build.0 = RD|x64
-		{8AF697C3-465E-4910-B31B-576A9ECDB309}.Release|Win32.ActiveCfg = RD|Win32
-		{8AF697C3-465E-4910-B31B-576A9ECDB309}.Release|Win32.Build.0 = RD|Win32
-		{8AF697C3-465E-4910-B31B-576A9ECDB309}.Release|x64.ActiveCfg = RD|x64
-		{8AF697C3-465E-4910-B31B-576A9ECDB309}.Release|x64.Build.0 = RD|x64
 		{15DABC90-234A-4B6B-9EEB-777C4768B82B}.Debug|Win32.ActiveCfg = Debug|Win32
 		{15DABC90-234A-4B6B-9EEB-777C4768B82B}.Debug|Win32.ActiveCfg = Debug|Win32
 		{15DABC90-234A-4B6B-9EEB-777C4768B82B}.Debug|Win32.Build.0 = Debug|Win32
 		{15DABC90-234A-4B6B-9EEB-777C4768B82B}.Debug|Win32.Build.0 = Debug|Win32
 		{15DABC90-234A-4B6B-9EEB-777C4768B82B}.Debug|x64.ActiveCfg = Debug|x64
 		{15DABC90-234A-4B6B-9EEB-777C4768B82B}.Debug|x64.ActiveCfg = Debug|x64
@@ -94,10 +84,6 @@ Global
 		{15DABC90-234A-4B6B-9EEB-777C4768B82B}.RD|Win32.Build.0 = RD|Win32
 		{15DABC90-234A-4B6B-9EEB-777C4768B82B}.RD|Win32.Build.0 = RD|Win32
 		{15DABC90-234A-4B6B-9EEB-777C4768B82B}.RD|x64.ActiveCfg = RD|x64
 		{15DABC90-234A-4B6B-9EEB-777C4768B82B}.RD|x64.ActiveCfg = RD|x64
 		{15DABC90-234A-4B6B-9EEB-777C4768B82B}.RD|x64.Build.0 = RD|x64
 		{15DABC90-234A-4B6B-9EEB-777C4768B82B}.RD|x64.Build.0 = RD|x64
-		{15DABC90-234A-4B6B-9EEB-777C4768B82B}.Release|Win32.ActiveCfg = RD|Win32
-		{15DABC90-234A-4B6B-9EEB-777C4768B82B}.Release|Win32.Build.0 = RD|Win32
-		{15DABC90-234A-4B6B-9EEB-777C4768B82B}.Release|x64.ActiveCfg = RD|x64
-		{15DABC90-234A-4B6B-9EEB-777C4768B82B}.Release|x64.Build.0 = RD|x64
 		{8F202F43-106D-4F63-AD9D-B1D43E803E8C}.Debug|Win32.ActiveCfg = Debug|Win32
 		{8F202F43-106D-4F63-AD9D-B1D43E803E8C}.Debug|Win32.ActiveCfg = Debug|Win32
 		{8F202F43-106D-4F63-AD9D-B1D43E803E8C}.Debug|Win32.Build.0 = Debug|Win32
 		{8F202F43-106D-4F63-AD9D-B1D43E803E8C}.Debug|Win32.Build.0 = Debug|Win32
 		{8F202F43-106D-4F63-AD9D-B1D43E803E8C}.Debug|x64.ActiveCfg = Debug|x64
 		{8F202F43-106D-4F63-AD9D-B1D43E803E8C}.Debug|x64.ActiveCfg = Debug|x64
@@ -106,30 +92,22 @@ Global
 		{8F202F43-106D-4F63-AD9D-B1D43E803E8C}.RD|Win32.Build.0 = RD|Win32
 		{8F202F43-106D-4F63-AD9D-B1D43E803E8C}.RD|Win32.Build.0 = RD|Win32
 		{8F202F43-106D-4F63-AD9D-B1D43E803E8C}.RD|x64.ActiveCfg = RD|x64
 		{8F202F43-106D-4F63-AD9D-B1D43E803E8C}.RD|x64.ActiveCfg = RD|x64
 		{8F202F43-106D-4F63-AD9D-B1D43E803E8C}.RD|x64.Build.0 = RD|x64
 		{8F202F43-106D-4F63-AD9D-B1D43E803E8C}.RD|x64.Build.0 = RD|x64
-		{8F202F43-106D-4F63-AD9D-B1D43E803E8C}.Release|Win32.ActiveCfg = RD|Win32
-		{8F202F43-106D-4F63-AD9D-B1D43E803E8C}.Release|Win32.Build.0 = RD|Win32
-		{8F202F43-106D-4F63-AD9D-B1D43E803E8C}.Release|x64.ActiveCfg = RD|x64
-		{8F202F43-106D-4F63-AD9D-B1D43E803E8C}.Release|x64.Build.0 = RD|x64
 		{276C3DB0-7A6B-4417-8E5C-322B08633AAC}.Debug|Win32.ActiveCfg = Debug|Win32
 		{276C3DB0-7A6B-4417-8E5C-322B08633AAC}.Debug|Win32.ActiveCfg = Debug|Win32
 		{276C3DB0-7A6B-4417-8E5C-322B08633AAC}.Debug|Win32.Build.0 = Debug|Win32
 		{276C3DB0-7A6B-4417-8E5C-322B08633AAC}.Debug|Win32.Build.0 = Debug|Win32
-		{276C3DB0-7A6B-4417-8E5C-322B08633AAC}.Debug|x64.ActiveCfg = Debug|Win32
+		{276C3DB0-7A6B-4417-8E5C-322B08633AAC}.Debug|x64.ActiveCfg = Debug|x64
+		{276C3DB0-7A6B-4417-8E5C-322B08633AAC}.Debug|x64.Build.0 = Debug|x64
 		{276C3DB0-7A6B-4417-8E5C-322B08633AAC}.RD|Win32.ActiveCfg = RD|Win32
 		{276C3DB0-7A6B-4417-8E5C-322B08633AAC}.RD|Win32.ActiveCfg = RD|Win32
 		{276C3DB0-7A6B-4417-8E5C-322B08633AAC}.RD|Win32.Build.0 = RD|Win32
 		{276C3DB0-7A6B-4417-8E5C-322B08633AAC}.RD|Win32.Build.0 = RD|Win32
-		{276C3DB0-7A6B-4417-8E5C-322B08633AAC}.RD|x64.ActiveCfg = RD|Win32
-		{276C3DB0-7A6B-4417-8E5C-322B08633AAC}.Release|Win32.ActiveCfg = RD|Win32
-		{276C3DB0-7A6B-4417-8E5C-322B08633AAC}.Release|Win32.Build.0 = RD|Win32
-		{276C3DB0-7A6B-4417-8E5C-322B08633AAC}.Release|x64.ActiveCfg = RD|x64
-		{276C3DB0-7A6B-4417-8E5C-322B08633AAC}.Release|x64.Build.0 = RD|x64
+		{276C3DB0-7A6B-4417-8E5C-322B08633AAC}.RD|x64.ActiveCfg = RD|x64
+		{276C3DB0-7A6B-4417-8E5C-322B08633AAC}.RD|x64.Build.0 = RD|x64
 		{D15B34EC-A32C-4968-9B0B-66998B579364}.Debug|Win32.ActiveCfg = Debug|Win32
 		{D15B34EC-A32C-4968-9B0B-66998B579364}.Debug|Win32.ActiveCfg = Debug|Win32
 		{D15B34EC-A32C-4968-9B0B-66998B579364}.Debug|Win32.Build.0 = Debug|Win32
 		{D15B34EC-A32C-4968-9B0B-66998B579364}.Debug|Win32.Build.0 = Debug|Win32
-		{D15B34EC-A32C-4968-9B0B-66998B579364}.Debug|x64.ActiveCfg = Debug|Win32
+		{D15B34EC-A32C-4968-9B0B-66998B579364}.Debug|x64.ActiveCfg = Debug|x64
+		{D15B34EC-A32C-4968-9B0B-66998B579364}.Debug|x64.Build.0 = Debug|x64
 		{D15B34EC-A32C-4968-9B0B-66998B579364}.RD|Win32.ActiveCfg = RD|Win32
 		{D15B34EC-A32C-4968-9B0B-66998B579364}.RD|Win32.ActiveCfg = RD|Win32
 		{D15B34EC-A32C-4968-9B0B-66998B579364}.RD|Win32.Build.0 = RD|Win32
 		{D15B34EC-A32C-4968-9B0B-66998B579364}.RD|Win32.Build.0 = RD|Win32
-		{D15B34EC-A32C-4968-9B0B-66998B579364}.RD|x64.ActiveCfg = RD|Win32
-		{D15B34EC-A32C-4968-9B0B-66998B579364}.Release|Win32.ActiveCfg = RD|Win32
-		{D15B34EC-A32C-4968-9B0B-66998B579364}.Release|Win32.Build.0 = RD|Win32
-		{D15B34EC-A32C-4968-9B0B-66998B579364}.Release|x64.ActiveCfg = RD|x64
-		{D15B34EC-A32C-4968-9B0B-66998B579364}.Release|x64.Build.0 = RD|x64
+		{D15B34EC-A32C-4968-9B0B-66998B579364}.RD|x64.ActiveCfg = RD|x64
+		{D15B34EC-A32C-4968-9B0B-66998B579364}.RD|x64.Build.0 = RD|x64
 		{C0300513-E845-43B4-9A4F-E8817EAEF57C}.Debug|Win32.ActiveCfg = Debug|Win32
 		{C0300513-E845-43B4-9A4F-E8817EAEF57C}.Debug|Win32.ActiveCfg = Debug|Win32
 		{C0300513-E845-43B4-9A4F-E8817EAEF57C}.Debug|Win32.Build.0 = Debug|Win32
 		{C0300513-E845-43B4-9A4F-E8817EAEF57C}.Debug|Win32.Build.0 = Debug|Win32
 		{C0300513-E845-43B4-9A4F-E8817EAEF57C}.Debug|x64.ActiveCfg = Debug|x64
 		{C0300513-E845-43B4-9A4F-E8817EAEF57C}.Debug|x64.ActiveCfg = Debug|x64
@@ -138,19 +116,12 @@ Global
 		{C0300513-E845-43B4-9A4F-E8817EAEF57C}.RD|Win32.Build.0 = RD|Win32
 		{C0300513-E845-43B4-9A4F-E8817EAEF57C}.RD|Win32.Build.0 = RD|Win32
 		{C0300513-E845-43B4-9A4F-E8817EAEF57C}.RD|x64.ActiveCfg = RD|x64
 		{C0300513-E845-43B4-9A4F-E8817EAEF57C}.RD|x64.ActiveCfg = RD|x64
 		{C0300513-E845-43B4-9A4F-E8817EAEF57C}.RD|x64.Build.0 = RD|x64
 		{C0300513-E845-43B4-9A4F-E8817EAEF57C}.RD|x64.Build.0 = RD|x64
-		{C0300513-E845-43B4-9A4F-E8817EAEF57C}.Release|Win32.ActiveCfg = RD|Win32
-		{C0300513-E845-43B4-9A4F-E8817EAEF57C}.Release|Win32.Build.0 = RD|Win32
-		{C0300513-E845-43B4-9A4F-E8817EAEF57C}.Release|x64.ActiveCfg = RD|x64
-		{C0300513-E845-43B4-9A4F-E8817EAEF57C}.Release|x64.Build.0 = RD|x64
 		{B12702AD-ABFB-343A-A199-8E24837244A3}.Debug|Win32.ActiveCfg = Debug|Win32
 		{B12702AD-ABFB-343A-A199-8E24837244A3}.Debug|Win32.ActiveCfg = Debug|Win32
 		{B12702AD-ABFB-343A-A199-8E24837244A3}.Debug|Win32.Build.0 = Debug|Win32
 		{B12702AD-ABFB-343A-A199-8E24837244A3}.Debug|Win32.Build.0 = Debug|Win32
 		{B12702AD-ABFB-343A-A199-8E24837244A3}.Debug|x64.ActiveCfg = Debug|Win32
 		{B12702AD-ABFB-343A-A199-8E24837244A3}.Debug|x64.ActiveCfg = Debug|Win32
 		{B12702AD-ABFB-343A-A199-8E24837244A3}.RD|Win32.ActiveCfg = Release|Win32
 		{B12702AD-ABFB-343A-A199-8E24837244A3}.RD|Win32.ActiveCfg = Release|Win32
 		{B12702AD-ABFB-343A-A199-8E24837244A3}.RD|Win32.Build.0 = Release|Win32
 		{B12702AD-ABFB-343A-A199-8E24837244A3}.RD|Win32.Build.0 = Release|Win32
 		{B12702AD-ABFB-343A-A199-8E24837244A3}.RD|x64.ActiveCfg = Release|Win32
 		{B12702AD-ABFB-343A-A199-8E24837244A3}.RD|x64.ActiveCfg = Release|Win32
-		{B12702AD-ABFB-343A-A199-8E24837244A3}.Release|Win32.ActiveCfg = Release|Win32
-		{B12702AD-ABFB-343A-A199-8E24837244A3}.Release|Win32.Build.0 = Release|Win32
-		{B12702AD-ABFB-343A-A199-8E24837244A3}.Release|x64.ActiveCfg = Release|Win32
 		{C41C4EB6-6F74-4F37-9FB0-9FA6BF377837}.Debug|Win32.ActiveCfg = Debug|Win32
 		{C41C4EB6-6F74-4F37-9FB0-9FA6BF377837}.Debug|Win32.ActiveCfg = Debug|Win32
 		{C41C4EB6-6F74-4F37-9FB0-9FA6BF377837}.Debug|Win32.Build.0 = Debug|Win32
 		{C41C4EB6-6F74-4F37-9FB0-9FA6BF377837}.Debug|Win32.Build.0 = Debug|Win32
 		{C41C4EB6-6F74-4F37-9FB0-9FA6BF377837}.Debug|x64.ActiveCfg = Debug|x64
 		{C41C4EB6-6F74-4F37-9FB0-9FA6BF377837}.Debug|x64.ActiveCfg = Debug|x64
@@ -159,10 +130,22 @@ Global
 		{C41C4EB6-6F74-4F37-9FB0-9FA6BF377837}.RD|Win32.Build.0 = RD|Win32
 		{C41C4EB6-6F74-4F37-9FB0-9FA6BF377837}.RD|Win32.Build.0 = RD|Win32
 		{C41C4EB6-6F74-4F37-9FB0-9FA6BF377837}.RD|x64.ActiveCfg = RD|x64
 		{C41C4EB6-6F74-4F37-9FB0-9FA6BF377837}.RD|x64.ActiveCfg = RD|x64
 		{C41C4EB6-6F74-4F37-9FB0-9FA6BF377837}.RD|x64.Build.0 = RD|x64
 		{C41C4EB6-6F74-4F37-9FB0-9FA6BF377837}.RD|x64.Build.0 = RD|x64
-		{C41C4EB6-6F74-4F37-9FB0-9FA6BF377837}.Release|Win32.ActiveCfg = RD|Win32
-		{C41C4EB6-6F74-4F37-9FB0-9FA6BF377837}.Release|Win32.Build.0 = RD|Win32
-		{C41C4EB6-6F74-4F37-9FB0-9FA6BF377837}.Release|x64.ActiveCfg = RD|x64
-		{C41C4EB6-6F74-4F37-9FB0-9FA6BF377837}.Release|x64.Build.0 = RD|x64
+		{BA25F3F0-EB87-4164-AAB9-073C50A3557A}.Debug|Win32.ActiveCfg = Debug|Win32
+		{BA25F3F0-EB87-4164-AAB9-073C50A3557A}.Debug|Win32.Build.0 = Debug|Win32
+		{BA25F3F0-EB87-4164-AAB9-073C50A3557A}.Debug|x64.ActiveCfg = Debug|x64
+		{BA25F3F0-EB87-4164-AAB9-073C50A3557A}.Debug|x64.Build.0 = Debug|x64
+		{BA25F3F0-EB87-4164-AAB9-073C50A3557A}.RD|Win32.ActiveCfg = RD|Win32
+		{BA25F3F0-EB87-4164-AAB9-073C50A3557A}.RD|Win32.Build.0 = RD|Win32
+		{BA25F3F0-EB87-4164-AAB9-073C50A3557A}.RD|x64.ActiveCfg = RD|x64
+		{BA25F3F0-EB87-4164-AAB9-073C50A3557A}.RD|x64.Build.0 = RD|x64
+		{AA3CC588-9D08-4178-A1E8-C71561E99723}.Debug|Win32.ActiveCfg = Debug|Win32
+		{AA3CC588-9D08-4178-A1E8-C71561E99723}.Debug|Win32.Build.0 = Debug|Win32
+		{AA3CC588-9D08-4178-A1E8-C71561E99723}.Debug|x64.ActiveCfg = Debug|x64
+		{AA3CC588-9D08-4178-A1E8-C71561E99723}.Debug|x64.Build.0 = Debug|x64
+		{AA3CC588-9D08-4178-A1E8-C71561E99723}.RD|Win32.ActiveCfg = RD|Win32
+		{AA3CC588-9D08-4178-A1E8-C71561E99723}.RD|Win32.Build.0 = RD|Win32
+		{AA3CC588-9D08-4178-A1E8-C71561E99723}.RD|x64.ActiveCfg = RD|x64
+		{AA3CC588-9D08-4178-A1E8-C71561E99723}.RD|x64.Build.0 = RD|x64
 	EndGlobalSection
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE
 		HideSolutionNode = FALSE

+ 12 - 10
lib/VCMI_lib.vcxproj

@@ -113,7 +113,7 @@
       <PreprocessorDefinitions>VCMI_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <PreprocessorDefinitions>VCMI_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
     </ClCompile>
     </ClCompile>
     <Link>
     <Link>
-      <AdditionalDependencies>zlib.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <AdditionalDependencies>minizip.lib;zlib.lib;%(AdditionalDependencies)</AdditionalDependencies>
     </Link>
     </Link>
   </ItemDefinitionGroup>
   </ItemDefinitionGroup>
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
@@ -127,7 +127,7 @@
       <PreprocessorDefinitions>VCMI_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <PreprocessorDefinitions>VCMI_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
     </ClCompile>
     </ClCompile>
     <Link>
     <Link>
-      <AdditionalDependencies>zlib.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <AdditionalDependencies>minizip.lib;zlib.lib;%(AdditionalDependencies)</AdditionalDependencies>
     </Link>
     </Link>
   </ItemDefinitionGroup>
   </ItemDefinitionGroup>
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='RD|Win32'">
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='RD|Win32'">
@@ -139,7 +139,7 @@
       <PrecompiledHeader>Use</PrecompiledHeader>
       <PrecompiledHeader>Use</PrecompiledHeader>
     </ClCompile>
     </ClCompile>
     <Link>
     <Link>
-      <AdditionalDependencies>zlib.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <AdditionalDependencies>minizip.lib;zlib.lib;%(AdditionalDependencies)</AdditionalDependencies>
       <Version>
       <Version>
       </Version>
       </Version>
       <LinkTimeCodeGeneration>
       <LinkTimeCodeGeneration>
@@ -155,7 +155,7 @@
       <PrecompiledHeaderFile>StdInc.h</PrecompiledHeaderFile>
       <PrecompiledHeaderFile>StdInc.h</PrecompiledHeaderFile>
     </ClCompile>
     </ClCompile>
     <Link>
     <Link>
-      <AdditionalDependencies>zlib.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <AdditionalDependencies>minizip.lib;zlib.lib;%(AdditionalDependencies)</AdditionalDependencies>
       <Version>
       <Version>
       </Version>
       </Version>
       <LinkTimeCodeGeneration>
       <LinkTimeCodeGeneration>
@@ -185,15 +185,16 @@
     <ClCompile Include="CSpellHandler.cpp" />
     <ClCompile Include="CSpellHandler.cpp" />
     <ClCompile Include="CThreadHelper.cpp" />
     <ClCompile Include="CThreadHelper.cpp" />
     <ClCompile Include="CTownHandler.cpp" />
     <ClCompile Include="CTownHandler.cpp" />
+    <ClCompile Include="filesystem\AdapterLoaders.cpp" />
+    <ClCompile Include="filesystem\CArchiveLoader.cpp" />
     <ClCompile Include="filesystem\CBinaryReader.cpp" />
     <ClCompile Include="filesystem\CBinaryReader.cpp" />
     <ClCompile Include="filesystem\CCompressedStream.cpp" />
     <ClCompile Include="filesystem\CCompressedStream.cpp" />
     <ClCompile Include="filesystem\CFileInfo.cpp" />
     <ClCompile Include="filesystem\CFileInfo.cpp" />
     <ClCompile Include="filesystem\CFileInputStream.cpp" />
     <ClCompile Include="filesystem\CFileInputStream.cpp" />
     <ClCompile Include="filesystem\CFilesystemLoader.cpp" />
     <ClCompile Include="filesystem\CFilesystemLoader.cpp" />
-    <ClCompile Include="filesystem\CLodArchiveLoader.cpp" />
-    <ClCompile Include="filesystem\CMappedFileLoader.cpp" />
     <ClCompile Include="filesystem\CMemoryStream.cpp" />
     <ClCompile Include="filesystem\CMemoryStream.cpp" />
-    <ClCompile Include="filesystem\CResourceLoader.cpp" />
+    <ClCompile Include="filesystem\CZipLoader.cpp" />
+    <ClCompile Include="filesystem\Filesystem.cpp" />
     <ClCompile Include="GameConstants.cpp" />
     <ClCompile Include="GameConstants.cpp" />
     <ClCompile Include="mapping\CCampaignHandler.cpp" />
     <ClCompile Include="mapping\CCampaignHandler.cpp" />
     <ClCompile Include="mapping\CMap.cpp" />
     <ClCompile Include="mapping\CMap.cpp" />
@@ -253,16 +254,17 @@
     <ClInclude Include="CStopWatch.h" />
     <ClInclude Include="CStopWatch.h" />
     <ClInclude Include="CThreadHelper.h" />
     <ClInclude Include="CThreadHelper.h" />
     <ClInclude Include="CTownHandler.h" />
     <ClInclude Include="CTownHandler.h" />
+    <ClInclude Include="filesystem\AdapterLoaders.h" />
+    <ClInclude Include="filesystem\CArchiveLoader.h" />
     <ClInclude Include="filesystem\CBinaryReader.h" />
     <ClInclude Include="filesystem\CBinaryReader.h" />
     <ClInclude Include="filesystem\CCompressedStream.h" />
     <ClInclude Include="filesystem\CCompressedStream.h" />
     <ClInclude Include="filesystem\CFileInfo.h" />
     <ClInclude Include="filesystem\CFileInfo.h" />
     <ClInclude Include="filesystem\CFileInputStream.h" />
     <ClInclude Include="filesystem\CFileInputStream.h" />
     <ClInclude Include="filesystem\CFilesystemLoader.h" />
     <ClInclude Include="filesystem\CFilesystemLoader.h" />
     <ClInclude Include="filesystem\CInputStream.h" />
     <ClInclude Include="filesystem\CInputStream.h" />
-    <ClInclude Include="filesystem\CLodArchiveLoader.h" />
-    <ClInclude Include="filesystem\CMappedFileLoader.h" />
     <ClInclude Include="filesystem\CMemoryStream.h" />
     <ClInclude Include="filesystem\CMemoryStream.h" />
-    <ClInclude Include="filesystem\CResourceLoader.h" />
+    <ClInclude Include="filesystem\CZipLoader.h" />
+    <ClInclude Include="filesystem\Filesystem.h" />
     <ClInclude Include="filesystem\ISimpleResourceLoader.h" />
     <ClInclude Include="filesystem\ISimpleResourceLoader.h" />
     <ClInclude Include="IBonusTypeHandler.h" />
     <ClInclude Include="IBonusTypeHandler.h" />
     <ClInclude Include="mapping\CCampaignHandler.h" />
     <ClInclude Include="mapping\CCampaignHandler.h" />

+ 3 - 1
lib/minizip/ioapi.h

@@ -121,6 +121,9 @@ typedef uint64_t ZPOS64_T;
 #        define ZEXPORT __declspec(dllimport)
 #        define ZEXPORT __declspec(dllimport)
 #      endif
 #      endif
 #  endif  /* ZLIB_DLL */
 #  endif  /* ZLIB_DLL */
+
+#define DLL_EXPORT __declspec(dllexport)
+
 #endif
 #endif
 
 
 
 
@@ -225,5 +228,4 @@ void    fill_zlib_filefunc64_32_def_from_filefunc32(zlib_filefunc64_32_def* p_fi
 #ifdef __cplusplus
 #ifdef __cplusplus
 }
 }
 #endif
 #endif
-
 #endif
 #endif

+ 186 - 0
lib/minizip/minizip.vcxproj

@@ -0,0 +1,186 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <ItemGroup Label="ProjectConfigurations">
+    <ProjectConfiguration Include="Debug|Win32">
+      <Configuration>Debug</Configuration>
+      <Platform>Win32</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Debug|x64">
+      <Configuration>Debug</Configuration>
+      <Platform>x64</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="RD|Win32">
+      <Configuration>RD</Configuration>
+      <Platform>Win32</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="RD|x64">
+      <Configuration>RD</Configuration>
+      <Platform>x64</Platform>
+    </ProjectConfiguration>
+  </ItemGroup>
+  <ItemGroup>
+    <ClInclude Include="ioapi.h" />
+    <ClInclude Include="unzip.h" />
+    <ClInclude Include="zip.h" />
+  </ItemGroup>
+  <ItemGroup>
+    <ClCompile Include="ioapi.c" />
+    <ClCompile Include="unzip.c" />
+    <ClCompile Include="zip.c" />
+  </ItemGroup>
+  <PropertyGroup Label="Globals">
+    <ProjectGuid>{AA3CC588-9D08-4178-A1E8-C71561E99723}</ProjectGuid>
+    <Keyword>Win32Proj</Keyword>
+    <RootNamespace>minizip</RootNamespace>
+  </PropertyGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+    <ConfigurationType>DynamicLibrary</ConfigurationType>
+    <UseDebugLibraries>true</UseDebugLibraries>
+    <PlatformToolset>v110</PlatformToolset>
+    <CharacterSet>Unicode</CharacterSet>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
+    <ConfigurationType>DynamicLibrary</ConfigurationType>
+    <UseDebugLibraries>true</UseDebugLibraries>
+    <PlatformToolset>v110</PlatformToolset>
+    <CharacterSet>Unicode</CharacterSet>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='RD|Win32'" Label="Configuration">
+    <ConfigurationType>DynamicLibrary</ConfigurationType>
+    <UseDebugLibraries>false</UseDebugLibraries>
+    <PlatformToolset>v110</PlatformToolset>
+    <WholeProgramOptimization>true</WholeProgramOptimization>
+    <CharacterSet>Unicode</CharacterSet>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='RD|x64'" Label="Configuration">
+    <ConfigurationType>DynamicLibrary</ConfigurationType>
+    <UseDebugLibraries>false</UseDebugLibraries>
+    <PlatformToolset>v110</PlatformToolset>
+    <WholeProgramOptimization>true</WholeProgramOptimization>
+    <CharacterSet>Unicode</CharacterSet>
+  </PropertyGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <ImportGroup Label="ExtensionSettings">
+  </ImportGroup>
+  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+    <Import Project="..\..\VCMI_global_debug.props" />
+    <Import Project="..\..\VCMI_global.props" />
+  </ImportGroup>
+  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+    <Import Project="..\..\VCMI_global_debug.props" />
+    <Import Project="..\..\VCMI_global.props" />
+  </ImportGroup>
+  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='RD|Win32'">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+  </ImportGroup>
+  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='RD|x64'" Label="PropertySheets">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+    <Import Project="..\..\VCMI_global_release.props" />
+    <Import Project="..\..\VCMI_global.props" />
+  </ImportGroup>
+  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+    <Import Project="..\..\VCMI_global_release.props" />
+    <Import Project="..\..\VCMI_global_release.props" />
+    <Import Project="..\..\VCMI_global_release.props" />
+    <Import Project="..\..\VCMI_global.props" />
+  </ImportGroup>
+  <PropertyGroup Label="UserMacros" />
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+    <LinkIncremental>true</LinkIncremental>
+    <OutDir>$(VCMI_Out)\</OutDir>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+    <LinkIncremental>true</LinkIncremental>
+    <OutDir>$(VCMI_Out)\</OutDir>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='RD|Win32'">
+    <IncludePath>$(SolutionDir)..\include;$(IncludePath)</IncludePath>
+    <OutDir>$(VCMI_Out)\</OutDir>
+    <LibraryPath>$(SolutionDir)..\libs\$(PlatformShortName);$(VCMI_Out);$(LibraryPath)</LibraryPath>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='RD|x64'">
+    <LibraryPath>$(SolutionDir)..\libs\$(PlatformShortName);$(VCMI_Out);$(LibraryPath)</LibraryPath>
+    <IncludePath>$(SolutionDir)..\include;$(IncludePath)</IncludePath>
+    <OutDir>$(VCMI_Out)\</OutDir>
+  </PropertyGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+    <ClCompile>
+      <PrecompiledHeader>
+      </PrecompiledHeader>
+      <WarningLevel>Level3</WarningLevel>
+      <Optimization>Disabled</Optimization>
+      <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;MINIZIP_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <SDLCheck>true</SDLCheck>
+    </ClCompile>
+    <Link>
+      <SubSystem>Windows</SubSystem>
+      <GenerateDebugInformation>true</GenerateDebugInformation>
+      <AdditionalDependencies>zlib.lib;%(AdditionalDependencies)</AdditionalDependencies>
+    </Link>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+    <ClCompile>
+      <PrecompiledHeader>
+      </PrecompiledHeader>
+      <WarningLevel>Level3</WarningLevel>
+      <Optimization>Disabled</Optimization>
+      <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;MINIZIP_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <SDLCheck>true</SDLCheck>
+    </ClCompile>
+    <Link>
+      <SubSystem>Windows</SubSystem>
+      <GenerateDebugInformation>true</GenerateDebugInformation>
+      <AdditionalDependencies>zlib.lib;%(AdditionalDependencies)</AdditionalDependencies>
+    </Link>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='RD|Win32'">
+    <ClCompile>
+      <WarningLevel>Level3</WarningLevel>
+      <PrecompiledHeader>
+      </PrecompiledHeader>
+      <Optimization>Full</Optimization>
+      <FunctionLevelLinking>
+      </FunctionLevelLinking>
+      <IntrinsicFunctions>true</IntrinsicFunctions>
+      <PreprocessorDefinitions>ZLIB_DLL;ZLIB_INTERNAL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <SDLCheck>true</SDLCheck>
+      <AdditionalIncludeDirectories>F:\Programowanie\VCMI\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+    </ClCompile>
+    <Link>
+      <SubSystem>Windows</SubSystem>
+      <GenerateDebugInformation>true</GenerateDebugInformation>
+      <EnableCOMDATFolding>true</EnableCOMDATFolding>
+      <OptimizeReferences>true</OptimizeReferences>
+      <AdditionalLibraryDirectories>..\..\libs;..\..</AdditionalLibraryDirectories>
+      <AdditionalDependencies>zlib.lib;%(AdditionalDependencies)</AdditionalDependencies>
+    </Link>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='RD|x64'">
+    <ClCompile>
+      <WarningLevel>Level3</WarningLevel>
+      <PrecompiledHeader>
+      </PrecompiledHeader>
+      <Optimization>Full</Optimization>
+      <FunctionLevelLinking>
+      </FunctionLevelLinking>
+      <IntrinsicFunctions>true</IntrinsicFunctions>
+      <PreprocessorDefinitions>ZLIB_DLL;ZLIB_INTERNAL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <SDLCheck>true</SDLCheck>
+      <AdditionalIncludeDirectories>F:\Programowanie\VCMI\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+    </ClCompile>
+    <Link>
+      <SubSystem>Windows</SubSystem>
+      <GenerateDebugInformation>true</GenerateDebugInformation>
+      <EnableCOMDATFolding>true</EnableCOMDATFolding>
+      <OptimizeReferences>true</OptimizeReferences>
+      <AdditionalLibraryDirectories>..\..\libs;..\..</AdditionalLibraryDirectories>
+      <AdditionalDependencies>zlib.lib;%(AdditionalDependencies)</AdditionalDependencies>
+    </Link>
+  </ItemDefinitionGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+  <ImportGroup Label="ExtensionTargets">
+  </ImportGroup>
+</Project>

+ 16 - 10
minizip/minizip.vcxproj.filters → lib/minizip/minizip.vcxproj.filters

@@ -15,19 +15,25 @@
     </Filter>
     </Filter>
   </ItemGroup>
   </ItemGroup>
   <ItemGroup>
   <ItemGroup>
-    <ClCompile Include="..\lib\minizip\ioapi.c">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\lib\minizip\unzip.c">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ClInclude Include="..\lib\minizip\ioapi.h">
+    <ClInclude Include="unzip.h">
+      <Filter>Header Files</Filter>
+    </ClInclude>
+    <ClInclude Include="zip.h">
       <Filter>Header Files</Filter>
       <Filter>Header Files</Filter>
     </ClInclude>
     </ClInclude>
-    <ClInclude Include="..\lib\minizip\unzip.h">
+    <ClInclude Include="ioapi.h">
       <Filter>Header Files</Filter>
       <Filter>Header Files</Filter>
     </ClInclude>
     </ClInclude>
   </ItemGroup>
   </ItemGroup>
+  <ItemGroup>
+    <ClCompile Include="zip.c">
+      <Filter>Source Files</Filter>
+    </ClCompile>
+    <ClCompile Include="ioapi.c">
+      <Filter>Source Files</Filter>
+    </ClCompile>
+    <ClCompile Include="unzip.c">
+      <Filter>Source Files</Filter>
+    </ClCompile>
+  </ItemGroup>
 </Project>
 </Project>

+ 33 - 33
lib/minizip/unzip.c

@@ -387,7 +387,7 @@ local int strcmpcasenosensitive_internal (const char* fileName1, const char* fil
         (like 1 on Unix, 2 on Windows)
         (like 1 on Unix, 2 on Windows)
 
 
 */
 */
-extern int ZEXPORT unzStringFileNameCompare (const char*  fileName1,
+extern int DLL_EXPORT unzStringFileNameCompare (const char*  fileName1,
                                                  const char*  fileName2,
                                                  const char*  fileName2,
                                                  int iCaseSensitivity)
                                                  int iCaseSensitivity)
 
 
@@ -762,7 +762,7 @@ local unzFile unzOpenInternal (const void *path,
 }
 }
 
 
 
 
-extern unzFile ZEXPORT unzOpen2 (const char *path,
+extern unzFile DLL_EXPORT unzOpen2 (const char *path,
                                         zlib_filefunc_def* pzlib_filefunc32_def)
                                         zlib_filefunc_def* pzlib_filefunc32_def)
 {
 {
     if (pzlib_filefunc32_def != NULL)
     if (pzlib_filefunc32_def != NULL)
@@ -775,7 +775,7 @@ extern unzFile ZEXPORT unzOpen2 (const char *path,
         return unzOpenInternal(path, NULL, 0);
         return unzOpenInternal(path, NULL, 0);
 }
 }
 
 
-extern unzFile ZEXPORT unzOpen2_64 (const void *path,
+extern unzFile DLL_EXPORT unzOpen2_64 (const void *path,
                                      zlib_filefunc64_def* pzlib_filefunc_def)
                                      zlib_filefunc64_def* pzlib_filefunc_def)
 {
 {
     if (pzlib_filefunc_def != NULL)
     if (pzlib_filefunc_def != NULL)
@@ -790,12 +790,12 @@ extern unzFile ZEXPORT unzOpen2_64 (const void *path,
         return unzOpenInternal(path, NULL, 1);
         return unzOpenInternal(path, NULL, 1);
 }
 }
 
 
-extern unzFile ZEXPORT unzOpen (const char *path)
+extern unzFile DLL_EXPORT unzOpen (const char *path)
 {
 {
     return unzOpenInternal(path, NULL, 0);
     return unzOpenInternal(path, NULL, 0);
 }
 }
 
 
-extern unzFile ZEXPORT unzOpen64 (const void *path)
+extern unzFile DLL_EXPORT unzOpen64 (const void *path)
 {
 {
     return unzOpenInternal(path, NULL, 1);
     return unzOpenInternal(path, NULL, 1);
 }
 }
@@ -805,7 +805,7 @@ extern unzFile ZEXPORT unzOpen64 (const void *path)
   If there is files inside the .Zip opened with unzOpenCurrentFile (see later),
   If there is files inside the .Zip opened with unzOpenCurrentFile (see later),
     these files MUST be closed with unzCloseCurrentFile before call unzClose.
     these files MUST be closed with unzCloseCurrentFile before call unzClose.
   return UNZ_OK if there is no problem. */
   return UNZ_OK if there is no problem. */
-extern int ZEXPORT unzClose (unzFile file)
+extern int DLL_EXPORT unzClose (unzFile file)
 {
 {
     unz64_s* s;
     unz64_s* s;
     if (file==NULL)
     if (file==NULL)
@@ -825,7 +825,7 @@ extern int ZEXPORT unzClose (unzFile file)
   Write info about the ZipFile in the *pglobal_info structure.
   Write info about the ZipFile in the *pglobal_info structure.
   No preparation of the structure is needed
   No preparation of the structure is needed
   return UNZ_OK if there is no problem. */
   return UNZ_OK if there is no problem. */
-extern int ZEXPORT unzGetGlobalInfo64 (unzFile file, unz_global_info64* pglobal_info)
+extern int DLL_EXPORT unzGetGlobalInfo64 (unzFile file, unz_global_info64* pglobal_info)
 {
 {
     unz64_s* s;
     unz64_s* s;
     if (file==NULL)
     if (file==NULL)
@@ -835,7 +835,7 @@ extern int ZEXPORT unzGetGlobalInfo64 (unzFile file, unz_global_info64* pglobal_
     return UNZ_OK;
     return UNZ_OK;
 }
 }
 
 
-extern int ZEXPORT unzGetGlobalInfo (unzFile file, unz_global_info* pglobal_info32)
+extern int DLL_EXPORT unzGetGlobalInfo (unzFile file, unz_global_info* pglobal_info32)
 {
 {
     unz64_s* s;
     unz64_s* s;
     if (file==NULL)
     if (file==NULL)
@@ -1121,7 +1121,7 @@ local int unz64local_GetCurrentFileInfoInternal (unzFile file,
   No preparation of the structure is needed
   No preparation of the structure is needed
   return UNZ_OK if there is no problem.
   return UNZ_OK if there is no problem.
 */
 */
-extern int ZEXPORT unzGetCurrentFileInfo64 (unzFile file,
+extern int DLL_EXPORT unzGetCurrentFileInfo64 (unzFile file,
                                           unz_file_info64 * pfile_info,
                                           unz_file_info64 * pfile_info,
                                           char * szFileName, uLong fileNameBufferSize,
                                           char * szFileName, uLong fileNameBufferSize,
                                           void *extraField, uLong extraFieldBufferSize,
                                           void *extraField, uLong extraFieldBufferSize,
@@ -1133,7 +1133,7 @@ extern int ZEXPORT unzGetCurrentFileInfo64 (unzFile file,
                                                 szComment,commentBufferSize);
                                                 szComment,commentBufferSize);
 }
 }
 
 
-extern int ZEXPORT unzGetCurrentFileInfo (unzFile file,
+extern int DLL_EXPORT unzGetCurrentFileInfo (unzFile file,
                                           unz_file_info * pfile_info,
                                           unz_file_info * pfile_info,
                                           char * szFileName, uLong fileNameBufferSize,
                                           char * szFileName, uLong fileNameBufferSize,
                                           void *extraField, uLong extraFieldBufferSize,
                                           void *extraField, uLong extraFieldBufferSize,
@@ -1175,7 +1175,7 @@ extern int ZEXPORT unzGetCurrentFileInfo (unzFile file,
   Set the current file of the zipfile to the first file.
   Set the current file of the zipfile to the first file.
   return UNZ_OK if there is no problem
   return UNZ_OK if there is no problem
 */
 */
-extern int ZEXPORT unzGoToFirstFile (unzFile file)
+extern int DLL_EXPORT unzGoToFirstFile (unzFile file)
 {
 {
     int err=UNZ_OK;
     int err=UNZ_OK;
     unz64_s* s;
     unz64_s* s;
@@ -1196,7 +1196,7 @@ extern int ZEXPORT unzGoToFirstFile (unzFile file)
   return UNZ_OK if there is no problem
   return UNZ_OK if there is no problem
   return UNZ_END_OF_LIST_OF_FILE if the actual file was the latest.
   return UNZ_END_OF_LIST_OF_FILE if the actual file was the latest.
 */
 */
-extern int ZEXPORT unzGoToNextFile (unzFile  file)
+extern int DLL_EXPORT unzGoToNextFile (unzFile  file)
 {
 {
     unz64_s* s;
     unz64_s* s;
     int err;
     int err;
@@ -1229,7 +1229,7 @@ extern int ZEXPORT unzGoToNextFile (unzFile  file)
   UNZ_OK if the file is found. It becomes the current file.
   UNZ_OK if the file is found. It becomes the current file.
   UNZ_END_OF_LIST_OF_FILE if the file is not found
   UNZ_END_OF_LIST_OF_FILE if the file is not found
 */
 */
-extern int ZEXPORT unzLocateFile (unzFile file, const char *szFileName, int iCaseSensitivity)
+extern int DLL_EXPORT unzLocateFile (unzFile file, const char *szFileName, int iCaseSensitivity)
 {
 {
     unz64_s* s;
     unz64_s* s;
     int err;
     int err;
@@ -1305,7 +1305,7 @@ typedef struct unz_file_pos_s
 } unz_file_pos;
 } unz_file_pos;
 */
 */
 
 
-extern int ZEXPORT unzGetFilePos64(unzFile file, unz64_file_pos*  file_pos)
+extern int DLL_EXPORT unzGetFilePos64(unzFile file, unz64_file_pos*  file_pos)
 {
 {
     unz64_s* s;
     unz64_s* s;
 
 
@@ -1321,7 +1321,7 @@ extern int ZEXPORT unzGetFilePos64(unzFile file, unz64_file_pos*  file_pos)
     return UNZ_OK;
     return UNZ_OK;
 }
 }
 
 
-extern int ZEXPORT unzGetFilePos(
+extern int DLL_EXPORT unzGetFilePos(
     unzFile file,
     unzFile file,
     unz_file_pos* file_pos)
     unz_file_pos* file_pos)
 {
 {
@@ -1335,7 +1335,7 @@ extern int ZEXPORT unzGetFilePos(
     return err;
     return err;
 }
 }
 
 
-extern int ZEXPORT unzGoToFilePos64(unzFile file, const unz64_file_pos* file_pos)
+extern int DLL_EXPORT unzGoToFilePos64(unzFile file, const unz64_file_pos* file_pos)
 {
 {
     unz64_s* s;
     unz64_s* s;
     int err;
     int err;
@@ -1357,7 +1357,7 @@ extern int ZEXPORT unzGoToFilePos64(unzFile file, const unz64_file_pos* file_pos
     return err;
     return err;
 }
 }
 
 
-extern int ZEXPORT unzGoToFilePos(
+extern int DLL_EXPORT unzGoToFilePos(
     unzFile file,
     unzFile file,
     unz_file_pos* file_pos)
     unz_file_pos* file_pos)
 {
 {
@@ -1469,7 +1469,7 @@ local int unz64local_CheckCurrentFileCoherencyHeader (unz64_s* s, uInt* piSizeVa
   Open for reading data the current file in the zipfile.
   Open for reading data the current file in the zipfile.
   If there is no error and the file is opened, the return value is UNZ_OK.
   If there is no error and the file is opened, the return value is UNZ_OK.
 */
 */
-extern int ZEXPORT unzOpenCurrentFile3 (unzFile file, int* method,
+extern int DLL_EXPORT unzOpenCurrentFile3 (unzFile file, int* method,
                                             int* level, int raw, const char* password)
                                             int* level, int raw, const char* password)
 {
 {
     int err=UNZ_OK;
     int err=UNZ_OK;
@@ -1638,24 +1638,24 @@ extern int ZEXPORT unzOpenCurrentFile3 (unzFile file, int* method,
     return UNZ_OK;
     return UNZ_OK;
 }
 }
 
 
-extern int ZEXPORT unzOpenCurrentFile (unzFile file)
+extern int DLL_EXPORT unzOpenCurrentFile (unzFile file)
 {
 {
     return unzOpenCurrentFile3(file, NULL, NULL, 0, NULL);
     return unzOpenCurrentFile3(file, NULL, NULL, 0, NULL);
 }
 }
 
 
-extern int ZEXPORT unzOpenCurrentFilePassword (unzFile file, const char*  password)
+extern int DLL_EXPORT unzOpenCurrentFilePassword (unzFile file, const char*  password)
 {
 {
     return unzOpenCurrentFile3(file, NULL, NULL, 0, password);
     return unzOpenCurrentFile3(file, NULL, NULL, 0, password);
 }
 }
 
 
-extern int ZEXPORT unzOpenCurrentFile2 (unzFile file, int* method, int* level, int raw)
+extern int DLL_EXPORT unzOpenCurrentFile2 (unzFile file, int* method, int* level, int raw)
 {
 {
     return unzOpenCurrentFile3(file, method, level, raw, NULL);
     return unzOpenCurrentFile3(file, method, level, raw, NULL);
 }
 }
 
 
 /** Addition for GDAL : START */
 /** Addition for GDAL : START */
 
 
-extern ZPOS64_T ZEXPORT unzGetCurrentFileZStreamPos64( unzFile file)
+extern ZPOS64_T DLL_EXPORT unzGetCurrentFileZStreamPos64( unzFile file)
 {
 {
     unz64_s* s;
     unz64_s* s;
     file_in_zip64_read_info_s* pfile_in_zip_read_info;
     file_in_zip64_read_info_s* pfile_in_zip_read_info;
@@ -1681,7 +1681,7 @@ extern ZPOS64_T ZEXPORT unzGetCurrentFileZStreamPos64( unzFile file)
   return <0 with error code if there is an error
   return <0 with error code if there is an error
     (UNZ_ERRNO for IO error, or zLib error for uncompress error)
     (UNZ_ERRNO for IO error, or zLib error for uncompress error)
 */
 */
-extern int ZEXPORT unzReadCurrentFile  (unzFile file, voidp buf, unsigned len)
+extern int DLL_EXPORT unzReadCurrentFile  (unzFile file, voidp buf, unsigned len)
 {
 {
     int err=UNZ_OK;
     int err=UNZ_OK;
     uInt iRead = 0;
     uInt iRead = 0;
@@ -1886,7 +1886,7 @@ extern int ZEXPORT unzReadCurrentFile  (unzFile file, voidp buf, unsigned len)
 /*
 /*
   Give the current position in uncompressed data
   Give the current position in uncompressed data
 */
 */
-extern z_off_t ZEXPORT unztell (unzFile file)
+extern z_off_t DLL_EXPORT unztell (unzFile file)
 {
 {
     unz64_s* s;
     unz64_s* s;
     file_in_zip64_read_info_s* pfile_in_zip_read_info;
     file_in_zip64_read_info_s* pfile_in_zip_read_info;
@@ -1901,7 +1901,7 @@ extern z_off_t ZEXPORT unztell (unzFile file)
     return (z_off_t)pfile_in_zip_read_info->stream.total_out;
     return (z_off_t)pfile_in_zip_read_info->stream.total_out;
 }
 }
 
 
-extern ZPOS64_T ZEXPORT unztell64 (unzFile file)
+extern ZPOS64_T DLL_EXPORT unztell64 (unzFile file)
 {
 {
 
 
     unz64_s* s;
     unz64_s* s;
@@ -1921,7 +1921,7 @@ extern ZPOS64_T ZEXPORT unztell64 (unzFile file)
 /*
 /*
   return 1 if the end of file was reached, 0 elsewhere
   return 1 if the end of file was reached, 0 elsewhere
 */
 */
-extern int ZEXPORT unzeof (unzFile file)
+extern int DLL_EXPORT unzeof (unzFile file)
 {
 {
     unz64_s* s;
     unz64_s* s;
     file_in_zip64_read_info_s* pfile_in_zip_read_info;
     file_in_zip64_read_info_s* pfile_in_zip_read_info;
@@ -1953,7 +1953,7 @@ more info in the local-header version than in the central-header)
   the return value is the number of bytes copied in buf, or (if <0)
   the return value is the number of bytes copied in buf, or (if <0)
     the error code
     the error code
 */
 */
-extern int ZEXPORT unzGetLocalExtrafield (unzFile file, voidp buf, unsigned len)
+extern int DLL_EXPORT unzGetLocalExtrafield (unzFile file, voidp buf, unsigned len)
 {
 {
     unz64_s* s;
     unz64_s* s;
     file_in_zip64_read_info_s* pfile_in_zip_read_info;
     file_in_zip64_read_info_s* pfile_in_zip_read_info;
@@ -2001,7 +2001,7 @@ extern int ZEXPORT unzGetLocalExtrafield (unzFile file, voidp buf, unsigned len)
   Close the file in zip opened with unzOpenCurrentFile
   Close the file in zip opened with unzOpenCurrentFile
   Return UNZ_CRCERROR if all the file was read but the CRC is not good
   Return UNZ_CRCERROR if all the file was read but the CRC is not good
 */
 */
-extern int ZEXPORT unzCloseCurrentFile (unzFile file)
+extern int DLL_EXPORT unzCloseCurrentFile (unzFile file)
 {
 {
     int err=UNZ_OK;
     int err=UNZ_OK;
 
 
@@ -2048,7 +2048,7 @@ extern int ZEXPORT unzCloseCurrentFile (unzFile file)
   uSizeBuf is the size of the szComment buffer.
   uSizeBuf is the size of the szComment buffer.
   return the number of byte copied or an error code <0
   return the number of byte copied or an error code <0
 */
 */
-extern int ZEXPORT unzGetGlobalComment (unzFile file, char * szComment, uLong uSizeBuf)
+extern int DLL_EXPORT unzGetGlobalComment (unzFile file, char * szComment, uLong uSizeBuf)
 {
 {
     unz64_s* s;
     unz64_s* s;
     uLong uReadThis ;
     uLong uReadThis ;
@@ -2076,7 +2076,7 @@ extern int ZEXPORT unzGetGlobalComment (unzFile file, char * szComment, uLong uS
 }
 }
 
 
 /* Additions by RX '2004 */
 /* Additions by RX '2004 */
-extern ZPOS64_T ZEXPORT unzGetOffset64(unzFile file)
+extern ZPOS64_T DLL_EXPORT unzGetOffset64(unzFile file)
 {
 {
     unz64_s* s;
     unz64_s* s;
 
 
@@ -2091,7 +2091,7 @@ extern ZPOS64_T ZEXPORT unzGetOffset64(unzFile file)
     return s->pos_in_central_dir;
     return s->pos_in_central_dir;
 }
 }
 
 
-extern uLong ZEXPORT unzGetOffset (unzFile file)
+extern uLong DLL_EXPORT unzGetOffset (unzFile file)
 {
 {
     ZPOS64_T offset64;
     ZPOS64_T offset64;
 
 
@@ -2101,7 +2101,7 @@ extern uLong ZEXPORT unzGetOffset (unzFile file)
     return (uLong)offset64;
     return (uLong)offset64;
 }
 }
 
 
-extern int ZEXPORT unzSetOffset64(unzFile file, ZPOS64_T pos)
+extern int DLL_EXPORT unzSetOffset64(unzFile file, ZPOS64_T pos)
 {
 {
     unz64_s* s;
     unz64_s* s;
     int err;
     int err;
@@ -2119,7 +2119,7 @@ extern int ZEXPORT unzSetOffset64(unzFile file, ZPOS64_T pos)
     return err;
     return err;
 }
 }
 
 
-extern int ZEXPORT unzSetOffset (unzFile file, uLong pos)
+extern int DLL_EXPORT unzSetOffset (unzFile file, uLong pos)
 {
 {
     return unzSetOffset64(file,pos);
     return unzSetOffset64(file,pos);
 }
 }

+ 33 - 33
lib/minizip/unzip.h

@@ -150,7 +150,7 @@ typedef struct unz_file_info_s
     tm_unz tmu_date;
     tm_unz tmu_date;
 } unz_file_info;
 } unz_file_info;
 
 
-extern int ZEXPORT unzStringFileNameCompare OF ((const char* fileName1,
+extern int DLL_EXPORT unzStringFileNameCompare OF ((const char* fileName1,
                                                  const char* fileName2,
                                                  const char* fileName2,
                                                  int iCaseSensitivity));
                                                  int iCaseSensitivity));
 /*
 /*
@@ -163,8 +163,8 @@ extern int ZEXPORT unzStringFileNameCompare OF ((const char* fileName1,
 */
 */
 
 
 
 
-extern unzFile ZEXPORT unzOpen OF((const char *path));
-extern unzFile ZEXPORT unzOpen64 OF((const void *path));
+extern unzFile DLL_EXPORT unzOpen OF((const char *path));
+extern unzFile DLL_EXPORT unzOpen64 OF((const void *path));
 /*
 /*
   Open a Zip file. path contain the full pathname (by example,
   Open a Zip file. path contain the full pathname (by example,
      on a Windows XP computer "c:\\zlib\\zlib113.zip" or on an Unix computer
      on a Windows XP computer "c:\\zlib\\zlib113.zip" or on an Unix computer
@@ -181,31 +181,31 @@ extern unzFile ZEXPORT unzOpen64 OF((const void *path));
 */
 */
 
 
 
 
-extern unzFile ZEXPORT unzOpen2 OF((const char *path,
+extern unzFile DLL_EXPORT unzOpen2 OF((const char *path,
                                     zlib_filefunc_def* pzlib_filefunc_def));
                                     zlib_filefunc_def* pzlib_filefunc_def));
 /*
 /*
    Open a Zip file, like unzOpen, but provide a set of file low level API
    Open a Zip file, like unzOpen, but provide a set of file low level API
       for read/write the zip file (see ioapi.h)
       for read/write the zip file (see ioapi.h)
 */
 */
 
 
-extern unzFile ZEXPORT unzOpen2_64 OF((const void *path,
+extern unzFile DLL_EXPORT unzOpen2_64 OF((const void *path,
                                     zlib_filefunc64_def* pzlib_filefunc_def));
                                     zlib_filefunc64_def* pzlib_filefunc_def));
 /*
 /*
    Open a Zip file, like unz64Open, but provide a set of file low level API
    Open a Zip file, like unz64Open, but provide a set of file low level API
       for read/write the zip file (see ioapi.h)
       for read/write the zip file (see ioapi.h)
 */
 */
 
 
-extern int ZEXPORT unzClose OF((unzFile file));
+extern int DLL_EXPORT unzClose OF((unzFile file));
 /*
 /*
   Close a ZipFile opened with unzOpen.
   Close a ZipFile opened with unzOpen.
   If there is files inside the .Zip opened with unzOpenCurrentFile (see later),
   If there is files inside the .Zip opened with unzOpenCurrentFile (see later),
     these files MUST be closed with unzCloseCurrentFile before call unzClose.
     these files MUST be closed with unzCloseCurrentFile before call unzClose.
   return UNZ_OK if there is no problem. */
   return UNZ_OK if there is no problem. */
 
 
-extern int ZEXPORT unzGetGlobalInfo OF((unzFile file,
+extern int DLL_EXPORT unzGetGlobalInfo OF((unzFile file,
                                         unz_global_info *pglobal_info));
                                         unz_global_info *pglobal_info));
 
 
-extern int ZEXPORT unzGetGlobalInfo64 OF((unzFile file,
+extern int DLL_EXPORT unzGetGlobalInfo64 OF((unzFile file,
                                         unz_global_info64 *pglobal_info));
                                         unz_global_info64 *pglobal_info));
 /*
 /*
   Write info about the ZipFile in the *pglobal_info structure.
   Write info about the ZipFile in the *pglobal_info structure.
@@ -213,7 +213,7 @@ extern int ZEXPORT unzGetGlobalInfo64 OF((unzFile file,
   return UNZ_OK if there is no problem. */
   return UNZ_OK if there is no problem. */
 
 
 
 
-extern int ZEXPORT unzGetGlobalComment OF((unzFile file,
+extern int DLL_EXPORT unzGetGlobalComment OF((unzFile file,
                                            char *szComment,
                                            char *szComment,
                                            uLong uSizeBuf));
                                            uLong uSizeBuf));
 /*
 /*
@@ -226,20 +226,20 @@ extern int ZEXPORT unzGetGlobalComment OF((unzFile file,
 /***************************************************************************/
 /***************************************************************************/
 /* Unzip package allow you browse the directory of the zipfile */
 /* Unzip package allow you browse the directory of the zipfile */
 
 
-extern int ZEXPORT unzGoToFirstFile OF((unzFile file));
+extern int DLL_EXPORT unzGoToFirstFile OF((unzFile file));
 /*
 /*
   Set the current file of the zipfile to the first file.
   Set the current file of the zipfile to the first file.
   return UNZ_OK if there is no problem
   return UNZ_OK if there is no problem
 */
 */
 
 
-extern int ZEXPORT unzGoToNextFile OF((unzFile file));
+extern int DLL_EXPORT unzGoToNextFile OF((unzFile file));
 /*
 /*
   Set the current file of the zipfile to the next file.
   Set the current file of the zipfile to the next file.
   return UNZ_OK if there is no problem
   return UNZ_OK if there is no problem
   return UNZ_END_OF_LIST_OF_FILE if the actual file was the latest.
   return UNZ_END_OF_LIST_OF_FILE if the actual file was the latest.
 */
 */
 
 
-extern int ZEXPORT unzLocateFile OF((unzFile file,
+extern int DLL_EXPORT unzLocateFile OF((unzFile file,
                      const char *szFileName,
                      const char *szFileName,
                      int iCaseSensitivity));
                      int iCaseSensitivity));
 /*
 /*
@@ -261,11 +261,11 @@ typedef struct unz_file_pos_s
     uLong num_of_file;            /* # of file */
     uLong num_of_file;            /* # of file */
 } unz_file_pos;
 } unz_file_pos;
 
 
-extern int ZEXPORT unzGetFilePos(
+extern int DLL_EXPORT unzGetFilePos(
     unzFile file,
     unzFile file,
     unz_file_pos* file_pos);
     unz_file_pos* file_pos);
 
 
-extern int ZEXPORT unzGoToFilePos(
+extern int DLL_EXPORT unzGoToFilePos(
     unzFile file,
     unzFile file,
     unz_file_pos* file_pos);
     unz_file_pos* file_pos);
 
 
@@ -275,17 +275,17 @@ typedef struct unz64_file_pos_s
     ZPOS64_T num_of_file;            /* # of file */
     ZPOS64_T num_of_file;            /* # of file */
 } unz64_file_pos;
 } unz64_file_pos;
 
 
-extern int ZEXPORT unzGetFilePos64(
+extern int DLL_EXPORT unzGetFilePos64(
     unzFile file,
     unzFile file,
     unz64_file_pos* file_pos);
     unz64_file_pos* file_pos);
 
 
-extern int ZEXPORT unzGoToFilePos64(
+extern int DLL_EXPORT unzGoToFilePos64(
     unzFile file,
     unzFile file,
     const unz64_file_pos* file_pos);
     const unz64_file_pos* file_pos);
 
 
 /* ****************************************** */
 /* ****************************************** */
 
 
-extern int ZEXPORT unzGetCurrentFileInfo64 OF((unzFile file,
+extern int DLL_EXPORT unzGetCurrentFileInfo64 OF((unzFile file,
                          unz_file_info64 *pfile_info,
                          unz_file_info64 *pfile_info,
                          char *szFileName,
                          char *szFileName,
                          uLong fileNameBufferSize,
                          uLong fileNameBufferSize,
@@ -294,7 +294,7 @@ extern int ZEXPORT unzGetCurrentFileInfo64 OF((unzFile file,
                          char *szComment,
                          char *szComment,
                          uLong commentBufferSize));
                          uLong commentBufferSize));
 
 
-extern int ZEXPORT unzGetCurrentFileInfo OF((unzFile file,
+extern int DLL_EXPORT unzGetCurrentFileInfo OF((unzFile file,
                          unz_file_info *pfile_info,
                          unz_file_info *pfile_info,
                          char *szFileName,
                          char *szFileName,
                          uLong fileNameBufferSize,
                          uLong fileNameBufferSize,
@@ -318,7 +318,7 @@ extern int ZEXPORT unzGetCurrentFileInfo OF((unzFile file,
 
 
 /** Addition for GDAL : START */
 /** Addition for GDAL : START */
 
 
-extern ZPOS64_T ZEXPORT unzGetCurrentFileZStreamPos64 OF((unzFile file));
+extern ZPOS64_T DLL_EXPORT unzGetCurrentFileZStreamPos64 OF((unzFile file));
 
 
 /** Addition for GDAL : END */
 /** Addition for GDAL : END */
 
 
@@ -328,13 +328,13 @@ extern ZPOS64_T ZEXPORT unzGetCurrentFileZStreamPos64 OF((unzFile file));
    from it, and close it (you can close it before reading all the file)
    from it, and close it (you can close it before reading all the file)
    */
    */
 
 
-extern int ZEXPORT unzOpenCurrentFile OF((unzFile file));
+extern int DLL_EXPORT unzOpenCurrentFile OF((unzFile file));
 /*
 /*
   Open for reading data the current file in the zipfile.
   Open for reading data the current file in the zipfile.
   If there is no error, the return value is UNZ_OK.
   If there is no error, the return value is UNZ_OK.
 */
 */
 
 
-extern int ZEXPORT unzOpenCurrentFilePassword OF((unzFile file,
+extern int DLL_EXPORT unzOpenCurrentFilePassword OF((unzFile file,
                                                   const char* password));
                                                   const char* password));
 /*
 /*
   Open for reading data the current file in the zipfile.
   Open for reading data the current file in the zipfile.
@@ -342,7 +342,7 @@ extern int ZEXPORT unzOpenCurrentFilePassword OF((unzFile file,
   If there is no error, the return value is UNZ_OK.
   If there is no error, the return value is UNZ_OK.
 */
 */
 
 
-extern int ZEXPORT unzOpenCurrentFile2 OF((unzFile file,
+extern int DLL_EXPORT unzOpenCurrentFile2 OF((unzFile file,
                                            int* method,
                                            int* method,
                                            int* level,
                                            int* level,
                                            int raw));
                                            int raw));
@@ -355,7 +355,7 @@ extern int ZEXPORT unzOpenCurrentFile2 OF((unzFile file,
          but you CANNOT set method parameter as NULL
          but you CANNOT set method parameter as NULL
 */
 */
 
 
-extern int ZEXPORT unzOpenCurrentFile3 OF((unzFile file,
+extern int DLL_EXPORT unzOpenCurrentFile3 OF((unzFile file,
                                            int* method,
                                            int* method,
                                            int* level,
                                            int* level,
                                            int raw,
                                            int raw,
@@ -370,13 +370,13 @@ extern int ZEXPORT unzOpenCurrentFile3 OF((unzFile file,
 */
 */
 
 
 
 
-extern int ZEXPORT unzCloseCurrentFile OF((unzFile file));
+extern int DLL_EXPORT unzCloseCurrentFile OF((unzFile file));
 /*
 /*
   Close the file in zip opened with unzOpenCurrentFile
   Close the file in zip opened with unzOpenCurrentFile
   Return UNZ_CRCERROR if all the file was read but the CRC is not good
   Return UNZ_CRCERROR if all the file was read but the CRC is not good
 */
 */
 
 
-extern int ZEXPORT unzReadCurrentFile OF((unzFile file,
+extern int DLL_EXPORT unzReadCurrentFile OF((unzFile file,
                       voidp buf,
                       voidp buf,
                       unsigned len));
                       unsigned len));
 /*
 /*
@@ -390,19 +390,19 @@ extern int ZEXPORT unzReadCurrentFile OF((unzFile file,
     (UNZ_ERRNO for IO error, or zLib error for uncompress error)
     (UNZ_ERRNO for IO error, or zLib error for uncompress error)
 */
 */
 
 
-extern z_off_t ZEXPORT unztell OF((unzFile file));
+extern z_off_t DLL_EXPORT unztell OF((unzFile file));
 
 
-extern ZPOS64_T ZEXPORT unztell64 OF((unzFile file));
+extern ZPOS64_T DLL_EXPORT unztell64 OF((unzFile file));
 /*
 /*
   Give the current position in uncompressed data
   Give the current position in uncompressed data
 */
 */
 
 
-extern int ZEXPORT unzeof OF((unzFile file));
+extern int DLL_EXPORT unzeof OF((unzFile file));
 /*
 /*
   return 1 if the end of file was reached, 0 elsewhere
   return 1 if the end of file was reached, 0 elsewhere
 */
 */
 
 
-extern int ZEXPORT unzGetLocalExtrafield OF((unzFile file,
+extern int DLL_EXPORT unzGetLocalExtrafield OF((unzFile file,
                                              voidp buf,
                                              voidp buf,
                                              unsigned len));
                                              unsigned len));
 /*
 /*
@@ -421,12 +421,12 @@ extern int ZEXPORT unzGetLocalExtrafield OF((unzFile file,
 /***************************************************************************/
 /***************************************************************************/
 
 
 /* Get the current file offset */
 /* Get the current file offset */
-extern ZPOS64_T ZEXPORT unzGetOffset64 (unzFile file);
-extern uLong ZEXPORT unzGetOffset (unzFile file);
+extern ZPOS64_T DLL_EXPORT unzGetOffset64 (unzFile file);
+extern uLong DLL_EXPORT unzGetOffset (unzFile file);
 
 
 /* Set the current file offset */
 /* Set the current file offset */
-extern int ZEXPORT unzSetOffset64 (unzFile file, ZPOS64_T pos);
-extern int ZEXPORT unzSetOffset (unzFile file, uLong pos);
+extern int DLL_EXPORT unzSetOffset64 (unzFile file, ZPOS64_T pos);
+extern int DLL_EXPORT unzSetOffset (unzFile file, uLong pos);
 
 
 
 
 
 

+ 19 - 19
lib/minizip/zip.c

@@ -851,7 +851,7 @@ int LoadCentralDirectoryRecord(zip64_internal* pziinit)
 
 
 
 
 /************************************************************/
 /************************************************************/
-extern zipFile ZEXPORT zipOpen3 (const void *pathname, int append, zipcharpc* globalcomment, zlib_filefunc64_32_def* pzlib_filefunc64_32_def)
+extern zipFile DLL_EXPORT zipOpen3 (const void *pathname, int append, zipcharpc* globalcomment, zlib_filefunc64_32_def* pzlib_filefunc64_32_def)
 {
 {
     zip64_internal ziinit;
     zip64_internal ziinit;
     zip64_internal* zi;
     zip64_internal* zi;
@@ -922,7 +922,7 @@ extern zipFile ZEXPORT zipOpen3 (const void *pathname, int append, zipcharpc* gl
     }
     }
 }
 }
 
 
-extern zipFile ZEXPORT zipOpen2 (const char *pathname, int append, zipcharpc* globalcomment, zlib_filefunc_def* pzlib_filefunc32_def)
+extern zipFile DLL_EXPORT zipOpen2 (const char *pathname, int append, zipcharpc* globalcomment, zlib_filefunc_def* pzlib_filefunc32_def)
 {
 {
     if (pzlib_filefunc32_def != NULL)
     if (pzlib_filefunc32_def != NULL)
     {
     {
@@ -934,7 +934,7 @@ extern zipFile ZEXPORT zipOpen2 (const char *pathname, int append, zipcharpc* gl
         return zipOpen3(pathname, append, globalcomment, NULL);
         return zipOpen3(pathname, append, globalcomment, NULL);
 }
 }
 
 
-extern zipFile ZEXPORT zipOpen2_64 (const void *pathname, int append, zipcharpc* globalcomment, zlib_filefunc64_def* pzlib_filefunc_def)
+extern zipFile DLL_EXPORT zipOpen2_64 (const void *pathname, int append, zipcharpc* globalcomment, zlib_filefunc64_def* pzlib_filefunc_def)
 {
 {
     if (pzlib_filefunc_def != NULL)
     if (pzlib_filefunc_def != NULL)
     {
     {
@@ -950,12 +950,12 @@ extern zipFile ZEXPORT zipOpen2_64 (const void *pathname, int append, zipcharpc*
 
 
 
 
 
 
-extern zipFile ZEXPORT zipOpen (const char* pathname, int append)
+extern zipFile DLL_EXPORT zipOpen (const char* pathname, int append)
 {
 {
     return zipOpen3((const void*)pathname,append,NULL,NULL);
     return zipOpen3((const void*)pathname,append,NULL,NULL);
 }
 }
 
 
-extern zipFile ZEXPORT zipOpen64 (const void* pathname, int append)
+extern zipFile DLL_EXPORT zipOpen64 (const void* pathname, int append)
 {
 {
     return zipOpen3(pathname,append,NULL,NULL);
     return zipOpen3(pathname,append,NULL,NULL);
 }
 }
@@ -1057,7 +1057,7 @@ int Write_LocalFileHeader(zip64_internal* zi, const char* filename, uInt size_ex
  It is not done here because then we need to realloc a new buffer since parameters are 'const' and I want to minimize
  It is not done here because then we need to realloc a new buffer since parameters are 'const' and I want to minimize
  unnecessary allocations.
  unnecessary allocations.
  */
  */
-extern int ZEXPORT zipOpenNewFileInZip4_64 (zipFile file, const char* filename, const zip_fileinfo* zipfi,
+extern int DLL_EXPORT zipOpenNewFileInZip4_64 (zipFile file, const char* filename, const zip_fileinfo* zipfi,
                                          const void* extrafield_local, uInt size_extrafield_local,
                                          const void* extrafield_local, uInt size_extrafield_local,
                                          const void* extrafield_global, uInt size_extrafield_global,
                                          const void* extrafield_global, uInt size_extrafield_global,
                                          const char* comment, int method, int level, int raw,
                                          const char* comment, int method, int level, int raw,
@@ -1267,7 +1267,7 @@ extern int ZEXPORT zipOpenNewFileInZip4_64 (zipFile file, const char* filename,
     return err;
     return err;
 }
 }
 
 
-extern int ZEXPORT zipOpenNewFileInZip4 (zipFile file, const char* filename, const zip_fileinfo* zipfi,
+extern int DLL_EXPORT zipOpenNewFileInZip4 (zipFile file, const char* filename, const zip_fileinfo* zipfi,
                                          const void* extrafield_local, uInt size_extrafield_local,
                                          const void* extrafield_local, uInt size_extrafield_local,
                                          const void* extrafield_global, uInt size_extrafield_global,
                                          const void* extrafield_global, uInt size_extrafield_global,
                                          const char* comment, int method, int level, int raw,
                                          const char* comment, int method, int level, int raw,
@@ -1283,7 +1283,7 @@ extern int ZEXPORT zipOpenNewFileInZip4 (zipFile file, const char* filename, con
                                  password, crcForCrypting, versionMadeBy, flagBase, 0);
                                  password, crcForCrypting, versionMadeBy, flagBase, 0);
 }
 }
 
 
-extern int ZEXPORT zipOpenNewFileInZip3 (zipFile file, const char* filename, const zip_fileinfo* zipfi,
+extern int DLL_EXPORT zipOpenNewFileInZip3 (zipFile file, const char* filename, const zip_fileinfo* zipfi,
                                          const void* extrafield_local, uInt size_extrafield_local,
                                          const void* extrafield_local, uInt size_extrafield_local,
                                          const void* extrafield_global, uInt size_extrafield_global,
                                          const void* extrafield_global, uInt size_extrafield_global,
                                          const char* comment, int method, int level, int raw,
                                          const char* comment, int method, int level, int raw,
@@ -1298,7 +1298,7 @@ extern int ZEXPORT zipOpenNewFileInZip3 (zipFile file, const char* filename, con
                                  password, crcForCrypting, VERSIONMADEBY, 0, 0);
                                  password, crcForCrypting, VERSIONMADEBY, 0, 0);
 }
 }
 
 
-extern int ZEXPORT zipOpenNewFileInZip3_64(zipFile file, const char* filename, const zip_fileinfo* zipfi,
+extern int DLL_EXPORT zipOpenNewFileInZip3_64(zipFile file, const char* filename, const zip_fileinfo* zipfi,
                                          const void* extrafield_local, uInt size_extrafield_local,
                                          const void* extrafield_local, uInt size_extrafield_local,
                                          const void* extrafield_global, uInt size_extrafield_global,
                                          const void* extrafield_global, uInt size_extrafield_global,
                                          const char* comment, int method, int level, int raw,
                                          const char* comment, int method, int level, int raw,
@@ -1313,7 +1313,7 @@ extern int ZEXPORT zipOpenNewFileInZip3_64(zipFile file, const char* filename, c
                                  password, crcForCrypting, VERSIONMADEBY, 0, zip64);
                                  password, crcForCrypting, VERSIONMADEBY, 0, zip64);
 }
 }
 
 
-extern int ZEXPORT zipOpenNewFileInZip2(zipFile file, const char* filename, const zip_fileinfo* zipfi,
+extern int DLL_EXPORT zipOpenNewFileInZip2(zipFile file, const char* filename, const zip_fileinfo* zipfi,
                                         const void* extrafield_local, uInt size_extrafield_local,
                                         const void* extrafield_local, uInt size_extrafield_local,
                                         const void* extrafield_global, uInt size_extrafield_global,
                                         const void* extrafield_global, uInt size_extrafield_global,
                                         const char* comment, int method, int level, int raw)
                                         const char* comment, int method, int level, int raw)
@@ -1326,7 +1326,7 @@ extern int ZEXPORT zipOpenNewFileInZip2(zipFile file, const char* filename, cons
                                  NULL, 0, VERSIONMADEBY, 0, 0);
                                  NULL, 0, VERSIONMADEBY, 0, 0);
 }
 }
 
 
-extern int ZEXPORT zipOpenNewFileInZip2_64(zipFile file, const char* filename, const zip_fileinfo* zipfi,
+extern int DLL_EXPORT zipOpenNewFileInZip2_64(zipFile file, const char* filename, const zip_fileinfo* zipfi,
                                         const void* extrafield_local, uInt size_extrafield_local,
                                         const void* extrafield_local, uInt size_extrafield_local,
                                         const void* extrafield_global, uInt size_extrafield_global,
                                         const void* extrafield_global, uInt size_extrafield_global,
                                         const char* comment, int method, int level, int raw, int zip64)
                                         const char* comment, int method, int level, int raw, int zip64)
@@ -1339,7 +1339,7 @@ extern int ZEXPORT zipOpenNewFileInZip2_64(zipFile file, const char* filename, c
                                  NULL, 0, VERSIONMADEBY, 0, zip64);
                                  NULL, 0, VERSIONMADEBY, 0, zip64);
 }
 }
 
 
-extern int ZEXPORT zipOpenNewFileInZip64 (zipFile file, const char* filename, const zip_fileinfo* zipfi,
+extern int DLL_EXPORT zipOpenNewFileInZip64 (zipFile file, const char* filename, const zip_fileinfo* zipfi,
                                         const void* extrafield_local, uInt size_extrafield_local,
                                         const void* extrafield_local, uInt size_extrafield_local,
                                         const void*extrafield_global, uInt size_extrafield_global,
                                         const void*extrafield_global, uInt size_extrafield_global,
                                         const char* comment, int method, int level, int zip64)
                                         const char* comment, int method, int level, int zip64)
@@ -1352,7 +1352,7 @@ extern int ZEXPORT zipOpenNewFileInZip64 (zipFile file, const char* filename, co
                                  NULL, 0, VERSIONMADEBY, 0, zip64);
                                  NULL, 0, VERSIONMADEBY, 0, zip64);
 }
 }
 
 
-extern int ZEXPORT zipOpenNewFileInZip (zipFile file, const char* filename, const zip_fileinfo* zipfi,
+extern int DLL_EXPORT zipOpenNewFileInZip (zipFile file, const char* filename, const zip_fileinfo* zipfi,
                                         const void* extrafield_local, uInt size_extrafield_local,
                                         const void* extrafield_local, uInt size_extrafield_local,
                                         const void*extrafield_global, uInt size_extrafield_global,
                                         const void*extrafield_global, uInt size_extrafield_global,
                                         const char* comment, int method, int level)
                                         const char* comment, int method, int level)
@@ -1404,7 +1404,7 @@ local int zip64FlushWriteBuffer(zip64_internal* zi)
     return err;
     return err;
 }
 }
 
 
-extern int ZEXPORT zipWriteInFileInZip (zipFile file,const void* buf,unsigned int len)
+extern int DLL_EXPORT zipWriteInFileInZip (zipFile file,const void* buf,unsigned int len)
 {
 {
     zip64_internal* zi;
     zip64_internal* zi;
     int err=ZIP_OK;
     int err=ZIP_OK;
@@ -1511,12 +1511,12 @@ extern int ZEXPORT zipWriteInFileInZip (zipFile file,const void* buf,unsigned in
     return err;
     return err;
 }
 }
 
 
-extern int ZEXPORT zipCloseFileInZipRaw (zipFile file, uLong uncompressed_size, uLong crc32)
+extern int DLL_EXPORT zipCloseFileInZipRaw (zipFile file, uLong uncompressed_size, uLong crc32)
 {
 {
     return zipCloseFileInZipRaw64 (file, uncompressed_size, crc32);
     return zipCloseFileInZipRaw64 (file, uncompressed_size, crc32);
 }
 }
 
 
-extern int ZEXPORT zipCloseFileInZipRaw64 (zipFile file, ZPOS64_T uncompressed_size, uLong crc32)
+extern int DLL_EXPORT zipCloseFileInZipRaw64 (zipFile file, ZPOS64_T uncompressed_size, uLong crc32)
 {
 {
     zip64_internal* zi;
     zip64_internal* zi;
     ZPOS64_T compressed_size;
     ZPOS64_T compressed_size;
@@ -1752,7 +1752,7 @@ extern int ZEXPORT zipCloseFileInZipRaw64 (zipFile file, ZPOS64_T uncompressed_s
     return err;
     return err;
 }
 }
 
 
-extern int ZEXPORT zipCloseFileInZip (zipFile file)
+extern int DLL_EXPORT zipCloseFileInZip (zipFile file)
 {
 {
     return zipCloseFileInZipRaw (file,0,0);
     return zipCloseFileInZipRaw (file,0,0);
 }
 }
@@ -1884,7 +1884,7 @@ int Write_GlobalComment(zip64_internal* zi, const char* global_comment)
   return err;
   return err;
 }
 }
 
 
-extern int ZEXPORT zipClose (zipFile file, const char* global_comment)
+extern int DLL_EXPORT zipClose (zipFile file, const char* global_comment)
 {
 {
     zip64_internal* zi;
     zip64_internal* zi;
     int err = 0;
     int err = 0;
@@ -1953,7 +1953,7 @@ extern int ZEXPORT zipClose (zipFile file, const char* global_comment)
     return err;
     return err;
 }
 }
 
 
-extern int ZEXPORT zipRemoveExtraInfoBlock (char* pData, int* dataLen, short sHeader)
+extern int DLL_EXPORT zipRemoveExtraInfoBlock (char* pData, int* dataLen, short sHeader)
 {
 {
   char* p = pData;
   char* p = pData;
   int size = 0;
   int size = 0;

+ 18 - 18
lib/minizip/zip.h

@@ -113,8 +113,8 @@ typedef const char* zipcharpc;
 #define APPEND_STATUS_CREATEAFTER   (1)
 #define APPEND_STATUS_CREATEAFTER   (1)
 #define APPEND_STATUS_ADDINZIP      (2)
 #define APPEND_STATUS_ADDINZIP      (2)
 
 
-extern zipFile ZEXPORT zipOpen OF((const char *pathname, int append));
-extern zipFile ZEXPORT zipOpen64 OF((const void *pathname, int append));
+extern zipFile DLL_EXPORT zipOpen OF((const char *pathname, int append));
+extern zipFile DLL_EXPORT zipOpen64 OF((const void *pathname, int append));
 /*
 /*
   Create a zipfile.
   Create a zipfile.
      pathname contain on Windows XP a filename like "c:\\zlib\\zlib113.zip" or on
      pathname contain on Windows XP a filename like "c:\\zlib\\zlib113.zip" or on
@@ -134,17 +134,17 @@ extern zipFile ZEXPORT zipOpen64 OF((const void *pathname, int append));
    Of couse, you can use RAW reading and writing to copy the file you did not want delte
    Of couse, you can use RAW reading and writing to copy the file you did not want delte
 */
 */
 
 
-extern zipFile ZEXPORT zipOpen2 OF((const char *pathname,
+extern zipFile DLL_EXPORT zipOpen2 OF((const char *pathname,
                                    int append,
                                    int append,
                                    zipcharpc* globalcomment,
                                    zipcharpc* globalcomment,
                                    zlib_filefunc_def* pzlib_filefunc_def));
                                    zlib_filefunc_def* pzlib_filefunc_def));
 
 
-extern zipFile ZEXPORT zipOpen2_64 OF((const void *pathname,
+extern zipFile DLL_EXPORT zipOpen2_64 OF((const void *pathname,
                                    int append,
                                    int append,
                                    zipcharpc* globalcomment,
                                    zipcharpc* globalcomment,
                                    zlib_filefunc64_def* pzlib_filefunc_def));
                                    zlib_filefunc64_def* pzlib_filefunc_def));
 
 
-extern int ZEXPORT zipOpenNewFileInZip OF((zipFile file,
+extern int DLL_EXPORT zipOpenNewFileInZip OF((zipFile file,
                        const char* filename,
                        const char* filename,
                        const zip_fileinfo* zipfi,
                        const zip_fileinfo* zipfi,
                        const void* extrafield_local,
                        const void* extrafield_local,
@@ -155,7 +155,7 @@ extern int ZEXPORT zipOpenNewFileInZip OF((zipFile file,
                        int method,
                        int method,
                        int level));
                        int level));
 
 
-extern int ZEXPORT zipOpenNewFileInZip64 OF((zipFile file,
+extern int DLL_EXPORT zipOpenNewFileInZip64 OF((zipFile file,
                        const char* filename,
                        const char* filename,
                        const zip_fileinfo* zipfi,
                        const zip_fileinfo* zipfi,
                        const void* extrafield_local,
                        const void* extrafield_local,
@@ -184,7 +184,7 @@ extern int ZEXPORT zipOpenNewFileInZip64 OF((zipFile file,
 */
 */
 
 
 
 
-extern int ZEXPORT zipOpenNewFileInZip2 OF((zipFile file,
+extern int DLL_EXPORT zipOpenNewFileInZip2 OF((zipFile file,
                                             const char* filename,
                                             const char* filename,
                                             const zip_fileinfo* zipfi,
                                             const zip_fileinfo* zipfi,
                                             const void* extrafield_local,
                                             const void* extrafield_local,
@@ -197,7 +197,7 @@ extern int ZEXPORT zipOpenNewFileInZip2 OF((zipFile file,
                                             int raw));
                                             int raw));
 
 
 
 
-extern int ZEXPORT zipOpenNewFileInZip2_64 OF((zipFile file,
+extern int DLL_EXPORT zipOpenNewFileInZip2_64 OF((zipFile file,
                                             const char* filename,
                                             const char* filename,
                                             const zip_fileinfo* zipfi,
                                             const zip_fileinfo* zipfi,
                                             const void* extrafield_local,
                                             const void* extrafield_local,
@@ -213,7 +213,7 @@ extern int ZEXPORT zipOpenNewFileInZip2_64 OF((zipFile file,
   Same than zipOpenNewFileInZip, except if raw=1, we write raw file
   Same than zipOpenNewFileInZip, except if raw=1, we write raw file
  */
  */
 
 
-extern int ZEXPORT zipOpenNewFileInZip3 OF((zipFile file,
+extern int DLL_EXPORT zipOpenNewFileInZip3 OF((zipFile file,
                                             const char* filename,
                                             const char* filename,
                                             const zip_fileinfo* zipfi,
                                             const zip_fileinfo* zipfi,
                                             const void* extrafield_local,
                                             const void* extrafield_local,
@@ -230,7 +230,7 @@ extern int ZEXPORT zipOpenNewFileInZip3 OF((zipFile file,
                                             const char* password,
                                             const char* password,
                                             uLong crcForCrypting));
                                             uLong crcForCrypting));
 
 
-extern int ZEXPORT zipOpenNewFileInZip3_64 OF((zipFile file,
+extern int DLL_EXPORT zipOpenNewFileInZip3_64 OF((zipFile file,
                                             const char* filename,
                                             const char* filename,
                                             const zip_fileinfo* zipfi,
                                             const zip_fileinfo* zipfi,
                                             const void* extrafield_local,
                                             const void* extrafield_local,
@@ -256,7 +256,7 @@ extern int ZEXPORT zipOpenNewFileInZip3_64 OF((zipFile file,
     crcForCrypting : crc of file to compress (needed for crypting)
     crcForCrypting : crc of file to compress (needed for crypting)
  */
  */
 
 
-extern int ZEXPORT zipOpenNewFileInZip4 OF((zipFile file,
+extern int DLL_EXPORT zipOpenNewFileInZip4 OF((zipFile file,
                                             const char* filename,
                                             const char* filename,
                                             const zip_fileinfo* zipfi,
                                             const zip_fileinfo* zipfi,
                                             const void* extrafield_local,
                                             const void* extrafield_local,
@@ -277,7 +277,7 @@ extern int ZEXPORT zipOpenNewFileInZip4 OF((zipFile file,
                                             ));
                                             ));
 
 
 
 
-extern int ZEXPORT zipOpenNewFileInZip4_64 OF((zipFile file,
+extern int DLL_EXPORT zipOpenNewFileInZip4_64 OF((zipFile file,
                                             const char* filename,
                                             const char* filename,
                                             const zip_fileinfo* zipfi,
                                             const zip_fileinfo* zipfi,
                                             const void* extrafield_local,
                                             const void* extrafield_local,
@@ -304,23 +304,23 @@ extern int ZEXPORT zipOpenNewFileInZip4_64 OF((zipFile file,
  */
  */
 
 
 
 
-extern int ZEXPORT zipWriteInFileInZip OF((zipFile file,
+extern int DLL_EXPORT zipWriteInFileInZip OF((zipFile file,
                        const void* buf,
                        const void* buf,
                        unsigned len));
                        unsigned len));
 /*
 /*
   Write data in the zipfile
   Write data in the zipfile
 */
 */
 
 
-extern int ZEXPORT zipCloseFileInZip OF((zipFile file));
+extern int DLL_EXPORT zipCloseFileInZip OF((zipFile file));
 /*
 /*
   Close the current file in the zipfile
   Close the current file in the zipfile
 */
 */
 
 
-extern int ZEXPORT zipCloseFileInZipRaw OF((zipFile file,
+extern int DLL_EXPORT zipCloseFileInZipRaw OF((zipFile file,
                                             uLong uncompressed_size,
                                             uLong uncompressed_size,
                                             uLong crc32));
                                             uLong crc32));
 
 
-extern int ZEXPORT zipCloseFileInZipRaw64 OF((zipFile file,
+extern int DLL_EXPORT zipCloseFileInZipRaw64 OF((zipFile file,
                                             ZPOS64_T uncompressed_size,
                                             ZPOS64_T uncompressed_size,
                                             uLong crc32));
                                             uLong crc32));
 
 
@@ -330,14 +330,14 @@ extern int ZEXPORT zipCloseFileInZipRaw64 OF((zipFile file,
   uncompressed_size and crc32 are value for the uncompressed size
   uncompressed_size and crc32 are value for the uncompressed size
 */
 */
 
 
-extern int ZEXPORT zipClose OF((zipFile file,
+extern int DLL_EXPORT zipClose OF((zipFile file,
                 const char* global_comment));
                 const char* global_comment));
 /*
 /*
   Close the zipfile
   Close the zipfile
 */
 */
 
 
 
 
-extern int ZEXPORT zipRemoveExtraInfoBlock OF((char* pData, int* dataLen, short sHeader));
+extern int DLL_EXPORT zipRemoveExtraInfoBlock OF((char* pData, int* dataLen, short sHeader));
 /*
 /*
   zipRemoveExtraInfoBlock -  Added by Mathias Svensson
   zipRemoveExtraInfoBlock -  Added by Mathias Svensson
 
 

+ 0 - 97
minizip/minizip.vcxproj

@@ -1,97 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup Label="ProjectConfigurations">
-    <ProjectConfiguration Include="Debug|Win32">
-      <Configuration>Debug</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|Win32">
-      <Configuration>Release</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-  </ItemGroup>
-  <PropertyGroup Label="Globals">
-    <ProjectGuid>{4949F16A-A2E3-4BAD-9D88-2A687C5555D1}</ProjectGuid>
-    <Keyword>Win32Proj</Keyword>
-    <RootNamespace>minizip</RootNamespace>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
-    <ConfigurationType>DynamicLibrary</ConfigurationType>
-    <UseDebugLibraries>true</UseDebugLibraries>
-    <PlatformToolset>v110</PlatformToolset>
-    <CharacterSet>Unicode</CharacterSet>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
-    <ConfigurationType>DynamicLibrary</ConfigurationType>
-    <UseDebugLibraries>false</UseDebugLibraries>
-    <PlatformToolset>v110</PlatformToolset>
-    <WholeProgramOptimization>true</WholeProgramOptimization>
-    <CharacterSet>Unicode</CharacterSet>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
-  <ImportGroup Label="ExtensionSettings">
-  </ImportGroup>
-  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-  </ImportGroup>
-  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-  </ImportGroup>
-  <PropertyGroup Label="UserMacros" />
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
-    <LinkIncremental>true</LinkIncremental>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
-    <IncludePath>$(SolutionDir)..\include;$(IncludePath)</IncludePath>
-    <OutDir>..\..</OutDir>
-    <LibraryPath>$(SolutionDir)..\libs\$(PlatformShortName);$(VCMI_Out);$(LibraryPath)</LibraryPath>
-  </PropertyGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
-    <ClCompile>
-      <PrecompiledHeader>
-      </PrecompiledHeader>
-      <WarningLevel>Level3</WarningLevel>
-      <Optimization>Disabled</Optimization>
-      <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;MINIZIP_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <SDLCheck>true</SDLCheck>
-    </ClCompile>
-    <Link>
-      <SubSystem>Windows</SubSystem>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
-    <ClCompile>
-      <WarningLevel>Level3</WarningLevel>
-      <PrecompiledHeader>
-      </PrecompiledHeader>
-      <Optimization>Full</Optimization>
-      <FunctionLevelLinking>
-      </FunctionLevelLinking>
-      <IntrinsicFunctions>true</IntrinsicFunctions>
-      <PreprocessorDefinitions>ZLIB_DLL;ZLIB_INTERNAL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <SDLCheck>true</SDLCheck>
-      <AdditionalIncludeDirectories>F:\Programowanie\VCMI\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-    </ClCompile>
-    <Link>
-      <SubSystem>Windows</SubSystem>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-      <EnableCOMDATFolding>true</EnableCOMDATFolding>
-      <OptimizeReferences>true</OptimizeReferences>
-      <AdditionalLibraryDirectories>..\..\libs;..\..</AdditionalLibraryDirectories>
-      <AdditionalDependencies>zlib.lib;%(AdditionalDependencies)</AdditionalDependencies>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemGroup>
-    <ClCompile Include="..\lib\minizip\ioapi.c" />
-    <ClCompile Include="..\lib\minizip\unzip.c" />
-  </ItemGroup>
-  <ItemGroup>
-    <ClInclude Include="..\lib\minizip\ioapi.h" />
-    <ClInclude Include="..\lib\minizip\unzip.h" />
-  </ItemGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
-  <ImportGroup Label="ExtensionTargets">
-  </ImportGroup>
-</Project>

+ 0 - 4
minizip/minizip.vcxproj.user

@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <PropertyGroup />
-</Project>