Files
wang-bin 9e092b0bec fix static link on windows
dllimport must be removed if link to a static lib. now it's not removed
because it's impossible to detect whether we link to a static lib
2015-04-23 14:33:20 +08:00

18 lines
395 B
C

#ifndef COMMON_EXPORT_H
#define COMMON_EXPORT_H
#include <QtCore/qglobal.h>
#ifdef BUILD_COMMON_STATIC
#define COMMON_EXPORT
#else
#if defined(BUILD_COMMON_LIB)
# undef COMMON_EXPORT
# define COMMON_EXPORT Q_DECL_EXPORT
#else
# undef COMMON_EXPORT
# define COMMON_EXPORT //Q_DECL_IMPORT //only for vc? link to static lib error
#endif
#endif //BUILD_COMMON_STATIC
#endif // COMMON_EXPORT_H