From 3f8cbbacf476ff8078cd351956a13bd6d2819ecc Mon Sep 17 00:00:00 2001 From: gewlitys Date: Wed, 24 Dec 2003 00:23:23 +0000 Subject: [PATCH] Added some defines to avoid zlib linking problems in VC git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1306 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/uio/zip/zip.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sc2/src/sc2code/libs/uio/zip/zip.h b/sc2/src/sc2code/libs/uio/zip/zip.h index 0c02f385e..e2603d5ac 100644 --- a/sc2/src/sc2code/libs/uio/zip/zip.h +++ b/sc2/src/sc2code/libs/uio/zip/zip.h @@ -33,6 +33,19 @@ typedef struct uio_GPDirEntries_Iterator *uio_NativeEntriesContext; #include "../types.h" #include "../fileblock.h" +#ifdef _MSC_VER +// these are needed to avoid zlib linking problems in VC +#ifndef ZLIB_WINAPI +#define ZLIB_WINAPI +#endif +#ifndef ZLIB_DLL +#define ZLIB_DLL +#endif +#ifndef _WINDOWS +#define _WINDOWS +#endif +#endif + #include #include #include