Improve symbols visibility control

visibility 'hidden' should be normally preferred for static builds,
which is also true for source-in builds as well
This commit is contained in:
Konstantin Ritt
2018-03-02 16:08:53 +03:00
parent 0cd5fd2d68
commit 2c7a329c48

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