-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.h.in
37 lines (34 loc) · 1.03 KB
/
config.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* @file config.h.in
* @brief
* configure c/c++
*
* @author niexw
* @email [email protected]
*/
#ifndef __DB_CONFIG_H__
#define __DB_CONFIG_H__
#if defined(WIN32)
# if !defined(WIN32_LEAN_AND_MEAN)
# define WIN32_LEAN_AND_MEAN
# endif
# include <SDKDDKVer.h>
# include <Windows.h>
# define OCF_WEAK __declspec(selectany) /* 弱声明 */
# define NO_VTABLE __declspec(novtable) /* 虚函数表 */
# if defined(EXPORT) /* 动态链接库导入导出 */
# define DLL_EXPORT __declspec(dllexport)
# else
# define DLL_EXPORT __declspec(dllimport)
# endif
#else
# define S_OK 0 /* 正常返回 */
# define S_FALSE 1 /* 异常返回 */
# define OCF_WEAK __attribute__((weak))
# define DLL_NO_EXPORT \
__attribute__((visibility("hidden"))) /* 禁止符号从dll导出 */
#endif
#if defined(__cplusplus)
# include <cstddef>/* NULL */
#endif /* __CPLUSPLUS */
#endif /* __DB_CONFIG_H__ */