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 <ijohnson@wolfram.com>
This commit is contained in:
Ian Johnson 2016-04-19 14:34:44 -05:00
parent 13f28d1c1e
commit 93906b9dfd

View File

@ -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