From 93906b9dfd8ff2fa4e63a6d808f2313627a6f04c Mon Sep 17 00:00:00 2001 From: Ian Johnson Date: Tue, 19 Apr 2016 14:34:44 -0500 Subject: [PATCH] We don't want to add any declaration properties for the static library, as the static library doesn't export or import anything, so when STATIC_LIB is defined the libmosq_EXPORT defines to nothing Signed-off-by: Ian Johnson --- lib/mosquitto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mosquitto.h b/lib/mosquitto.h index c468a5ca..f1deb3e6 100644 --- a/lib/mosquitto.h +++ b/lib/mosquitto.h @@ -21,7 +21,7 @@ Contributors: extern "C" { #endif -#if defined(WIN32) && !defined(WITH_BROKER) +#if defined(WIN32) && !defined(WITH_BROKER) && !defined(STATIC_LIB) # ifdef libmosquitto_EXPORTS # define libmosq_EXPORT __declspec(dllexport) # else