summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/zmq.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/zmq.h b/include/zmq.h
index fc52584..d251ae8 100644
--- a/include/zmq.h
+++ b/include/zmq.h
@@ -30,13 +30,15 @@ extern "C" {
#include "winsock2.h"
#endif
-/* Microsoft Visual Studio uses non-standard way to export/import symbols. */
-#if defined ZMQ_BUILDING_LIBZMQ_WITH_MSVC
-#define ZMQ_EXPORT __declspec(dllexport)
-#elif defined _MSC_VER
-#define ZMQ_EXPORT __declspec(dllimport)
+/* Win32 needs special handling for DLL exports */
+#if defined _WIN32
+# if defined DLL_EXPORT
+# define ZMQ_EXPORT __declspec(dllexport)
+# else
+# define ZMQ_EXPORT __declspec(dllimport)
+# endif
#else
-#define ZMQ_EXPORT
+# define ZMQ_EXPORT
#endif
/******************************************************************************/