VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/libzip
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-12-30 20:16:42 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-12-30 23:56:36 +0100
commit049daa775a2cb07de9f5f513448d3db441054e05 (patch)
tree9a43562af8b89f6e7167f334456dacf1eaf3aee9 /src/Common/libzip
parentd7b20a070ea5dbc52f65e93f9b1f9eb99e5c78ed (diff)
downloadVeraCrypt-049daa775a2cb07de9f5f513448d3db441054e05.tar.gz
VeraCrypt-049daa775a2cb07de9f5f513448d3db441054e05.zip
Windows: avoid exporting libzip symbols from VeraCrypt binaries.
Diffstat (limited to 'src/Common/libzip')
-rw-r--r--src/Common/libzip/compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Common/libzip/compat.h b/src/Common/libzip/compat.h
index 4cc6703f..ed1f8726 100644
--- a/src/Common/libzip/compat.h
+++ b/src/Common/libzip/compat.h
@@ -42,7 +42,11 @@
#define __STDC_LIMIT_MACROS
#ifdef _WIN32
+#ifdef ZIP_STATIC
+#define ZIP_EXTERN
+#else
#define ZIP_EXTERN __declspec(dllexport)
+#endif
/* for dup(), close(), etc. */
#include <io.h>
#endif