You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/src/libzip-1-static_build.patch

23 lines
600 B

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

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