Merge pull request #34 from KonstantinRitt/mr/symbols_visibility

Improve symbols visibility control
This commit is contained in:
Roman Isaikin
2018-12-02 00:19:49 +03:00
committed by GitHub

View File

@ -3,10 +3,14 @@
#include <QtCore/qglobal.h>
#if defined(MSGPACK_MAKE_LIB) // building lib
#define MSGPACK_EXPORT Q_DECL_EXPORT
#else // using lib
#define MSGPACK_EXPORT Q_DECL_IMPORT
#ifndef MSGPACK_STATIC
# if defined(MSGPACK_MAKE_LIB)
# define MSGPACK_EXPORT Q_DECL_EXPORT
# else
# define MSGPACK_EXPORT Q_DECL_IMPORT
# endif
#else
# define MSGPACK_EXPORT
#endif
#endif // MSGPACK_EXPORT_H