mxe/src/libzip-1-static_build.patch

23 lines
600 B
Diff
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file is part of MXE.
See index.html for further information.
This is a quick&dirty fix.
The bug is being discussed at
http://www.nih.at/listarchive/libzip-discuss/msg00304.html
--- a/lib/zip.h 2013-03-19 11:09:51.000000000 +0100
+++ b/lib/zip.h 2013-05-23 16:50:53.881403133 +0200
@@ -37,9 +37,9 @@
#ifndef ZIP_EXTERN
-#ifdef _WIN32
+#ifdef _MSC_VER
#define ZIP_EXTERN __declspec(dllimport)
-#elif defined(__GNUC__) && __GNUC__ >= 4
+#elif (defined(__GNUC__) && __GNUC__ >= 4) && !defined(_WIN32)
#define ZIP_EXTERN __attribute__ ((visibility ("default")))
#else
#define ZIP_EXTERN