音视频通讯SDK API参考手册  iOS 1.4.0
build_config.h
1 #ifndef BUILD_CONFIG_H_
2 #define BUILD_CONFIG_H_
3 
4 #if defined(ANDROID)
5 
6 #define OS_ANDROID 1
7 
8 #elif defined(__APPLE__)
9 
10 #include <TargetConditionals.h>
11 #define OS_MACOSX 1
12 
13 #if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
14 #define OS_IOS 1
15 #endif
16 
17 #elif defined(__linux__)
18 
19 #define OS_LINUX 1
20 #include <unistd.h>
21 
22 #if defined(__GLIBC__) && !defined(__UCLIBC__)
23 #define LIBC_GLIBC 1
24 #endif
25 
26 #elif defined(_WIN32)
27 
28 #define OS_WIN 1
29 
30 #else
31 
32 #error Please add support for your platform in build_config.h
33 
34 #endif
35 
36 #if defined(OS_ANDROID)
37 #define STD_STRING_ITERATOR_IS_CHAR_POINTER
38 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER
39 #endif
40 
41 #endif // BUILD_CONFIG_H_