CompleteDB Embedded: Direct C++ API  2.4.2
CompleteDbSystem.h
Go to the documentation of this file.
1 #ifndef COMPLETEDB_COMPLETEDB_SYSTEM_H
2 #define COMPLETEDB_COMPLETEDB_SYSTEM_H
3 
4 #ifdef __cplusplus
5  #ifdef WIN32
6  #if _MSC_VER >= 1600
7  #include <cstdint>
8  #else
9  #include "common/msinttypes/stdint.h"
10  #endif /* _MSC_VER >= 1600 */
11  #else
12  #include <stdint.h>
13  #endif /* WIN32 */
14 #endif /* __cplusplus */
15 
16 
17 #ifdef WIN32
18  #ifdef COMPLETEDB_STATIC
19  #define COMPLETEDB_API
20  #define COMPLETEDB_CALL
21  #else
22  #ifdef COMPLETEDB_DLL
23  #define COMPLETEDB_API __declspec(dllexport)
24  #define COMPLETEDB_CALL __stdcall
25  #else
26  #define COMPLETEDB_API __declspec(dllimport)
27  #define COMPLETEDB_CALL
28  #endif /* COMPLETEDB_DLL */
29  #endif /* COMPLETEDB_STATIC */
30 #else
31  #define COMPLETEDB_API __attribute__((visibility("default")))
32  #define COMPLETEDB_CALL
33 #endif /* WIN32 */
34 
35 #define COMPLETEDB_BOOL bool
36 
49 #endif /* COMPLETEDB_COMPLETEDB_SYSTEM_H */