summaryrefslogtreecommitdiffstats
path: root/src/libzip-1-static_build.patch
blob: c9d03b03e9a3fd2eb7336fb871107708f55ab508 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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