Tianchi  v0.0.2 build 20130701
C++ library for Qt with VC & mingW
tcglobal.h
1 // **************************************************************************
2 // Tianchi C++ library for Qt (open source)
3 // 天池共享源码库
4 // 版权所有 (C) 天池共享源码库开发组
5 // 授权协议:请阅读天池共享源码库附带的授权协议
6 // **************************************************************************
7 // 文档说明:常用功能函数
8 // ==========================================================================
9 // 开发日志:
10 // 日期 人员 说明
11 // --------------------------------------------------------------------------
12 // 2013.04.11 cnhemiya 建立
13 // 2013.04.17 XChinux 参照Qt/qglobal.h文件重写Global.h
14 // ==========================================================================
15 // 注意事项:
16 // 1. 编译Tianchi DLL时请在 .pro 中添加:
17 // DEFINES += TIANCHI_EXPORT
18 // 2. 使用Tianchi DLL时请在.pro中添加
19 // DEFINES += TIANCHI_IMPORT
20 // ==========================================================================
21 
22 #ifndef TIANCHI_TCGLOBAL_H
23 #define TIANCHI_TCGLOBAL_H
24 
25 #ifndef __cplusplus
26 # error "Tianchi library only support C++ Compilers"
27 #endif
28 
29 #include <QtCore/qglobal.h>
30 
31 #define TIANCHI_VERSION_STR "0.0.2"
32 /*
33  TIANCHI_VERSION is (major << 16) + (minor << 8) + patch.
34 */
35 #define TIANCHI_VERSION 0x000002
36 /*
37  can be used like #if (TIANCHI_VERSION >= TIANCHI_VERSION_CHECK(4, 4, 0))
38 */
39 #define TIANCHI_VERSION_CHECK(major, minor, patch) ((major<<16)|(minor<<8)|(patch))
40 
41 #if defined(TIANCHI_EXPORT)
42 # define TIANCHI_API Q_DECL_EXPORT
43 #elif defined(TIANCHI_IMPORT)
44 # define TIANCHI_API Q_DECL_IMPORT
45 #else
46 # define TIANCHI_API
47 #endif
48 
49 
50 #endif // TIANCHI_GLOBAL_H