summaryrefslogtreecommitdiff
path: root/ext/zip/php_zip.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zip/php_zip.h')
-rw-r--r--ext/zip/php_zip.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/zip/php_zip.h b/ext/zip/php_zip.h
index 743cac8ade..58cb543730 100644
--- a/ext/zip/php_zip.h
+++ b/ext/zip/php_zip.h
@@ -26,10 +26,14 @@
extern zend_module_entry zip_module_entry;
#define phpext_zip_ptr &zip_module_entry
+#define PHP_ZZIPLIB_API
#ifdef PHP_WIN32
+#undef PHP_ZZIPLIB_API
+#ifdef ZIP_EXPORTS
#define PHP_ZZIPLIB_API __declspec(dllexport)
#else
-#define PHP_ZZIPLIB_API
+#define PHP_ZZIPLIB_API __declspec(dllimport)
+#endif
#endif
PHP_MINIT_FUNCTION(zip);