modify:优化
This commit is contained in:
@@ -3,10 +3,16 @@
|
||||
|
||||
#include <QtCore/qglobal.h>
|
||||
|
||||
#if defined(NUMKEYBOARD_LIBRARY)
|
||||
#define NUMKEYBOARD_EXPORT Q_DECL_EXPORT
|
||||
// 如果定义了 NUMKEYBOARD_STATIC,则宏为空(适用于直接引入源码编译)
|
||||
#if defined(NUMKEYBOARD_STATIC)
|
||||
# define NUMKEYBOARD_EXPORT
|
||||
#else
|
||||
#define NUMKEYBOARD_EXPORT Q_DECL_IMPORT
|
||||
// 如果没定义 STATIC,则在“写库”和“用库”之间切换
|
||||
# if defined(NUMKEYBOARD_LIBRARY)
|
||||
# define NUMKEYBOARD_EXPORT Q_DECL_EXPORT
|
||||
# else
|
||||
# define NUMKEYBOARD_EXPORT Q_DECL_IMPORT
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#endif // NUMKEYBOARD_GLOBAL_H
|
||||
|
||||
Reference in New Issue
Block a user