mirror of
https://github.com/romixlab/qmsgpack.git
synced 2025-06-25 01:21:33 +02:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user