NERtc Windows SDK  V4.6.53
nertc_base.h
浏览该文件的文档.
1 
6 #ifndef NERTC_BASE_H
7 #define NERTC_BASE_H
8 
9 #if defined(_WIN32)
10 #ifndef WIN32_LEAN_AND_MEAN
11 #define WIN32_LEAN_AND_MEAN
12 #endif
13 #include <windows.h>
14 #define NERTC_CALL __cdecl
15 #if defined(NERTC_SDK_EXPORT)
16 #define NERTC_API extern "C" __declspec(dllexport)
17 #else
18 #define NERTC_API extern "C" __declspec(dllimport)
19 #endif
20 #elif defined(__APPLE__)
21 #define NERTC_API __attribute__((visibility("default"))) extern "C"
22 #define NERTC_CALL
23 #elif defined(__ANDROID__) || defined(__linux__)
24 #define NERTC_API extern "C" __attribute__((visibility("default")))
25 #define NERTC_CALL
26 #else
27 #define NERTC_API extern "C"
28 #define NERTC_CALL
29 #endif
30 
31 #if defined __GNUC__
32 #define NERTC_DEPRECATED __attribute__ ((deprecated))
33 #elif defined(_MSC_VER)
34 #define NERTC_DEPRECATED __declspec(deprecated)
35 #else
36 #define NERTC_DEPRECATED
37 #endif
38 
39 #endif