NERtc Windows SDK
nertc_base.h
Go to the documentation of this file.
1 
8 #ifndef NERTC_BASE_H
9 #define NERTC_BASE_H
10 
11 #if defined(_WIN32)
12 #ifndef WIN32_LEAN_AND_MEAN
13 #define WIN32_LEAN_AND_MEAN
14 #endif
15 #include <windows.h>
16 #define NERTC_CALL __cdecl
17 #if defined(NERTC_SDK_EXPORT)
18 #define NERTC_API extern "C" __declspec(dllexport)
19 #else
20 #define NERTC_API extern "C" __declspec(dllimport)
21 #endif
22 #elif defined(__APPLE__)
23 #define NERTC_API __attribute__((visibility("default"))) extern "C"
24 #define NERTC_CALL
25 #elif defined(__ANDROID__) || defined(__linux__)
26 #define NERTC_API extern "C" __attribute__((visibility("default")))
27 #define NERTC_CALL
28 #else
29 #define NERTC_API extern "C"
30 #define NERTC_CALL
31 #endif
32 
33 #endif