2023-05-14 00:45:03 +08:00
|
|
|
diff --git a/include/zim/zim.h b/include/zim/zim.h
|
2023-12-12 17:31:45 +08:00
|
|
|
index 80e8596..631cfab 100644
|
2023-05-14 00:45:03 +08:00
|
|
|
--- a/include/zim/zim.h
|
|
|
|
+++ b/include/zim/zim.h
|
2023-12-12 17:31:45 +08:00
|
|
|
@@ -35,8 +35,10 @@
|
|
|
|
|
|
|
|
#include <zim/zim_config.h>
|
2023-05-14 00:45:03 +08:00
|
|
|
|
2023-12-12 17:31:45 +08:00
|
|
|
-#if defined(_MSC_VER) && defined(LIBZIM_EXPORT_DLL)
|
|
|
|
+#if defined(_WIN32) && defined(LIBZIM_EXPORT_DLL)
|
2023-05-14 00:45:03 +08:00
|
|
|
#define LIBZIM_API __declspec(dllexport)
|
2023-12-12 17:31:45 +08:00
|
|
|
+#elif defined(_WIN32) && defined(LIBZIM_IMPORT_DLL)
|
2023-05-14 00:45:03 +08:00
|
|
|
+ #define LIBZIM_API __declspec(dllimport)
|
|
|
|
#else
|
|
|
|
#define LIBZIM_API
|
|
|
|
#endif
|