OSdetect.h
Go to the documentation of this file.
1 #ifndef B_OS_DETECT_H
2 #define B_OS_DETECT_H
3 
4 
5 #ifdef _WIN32
6 /* Windows 32-bit and 64-bit */
7 #define B_OS_DESKTOP
8 #elif __APPLE__
9 #include "TargetConditionals.h"
10 #if TARGET_IPHONE_SIMULATOR
11 /* iOS Simulator*/
12 #define B_OS_IOS
13 #elif TARGET_OS_IPHONE
14 /* iOS */
15 #define B_OS_IOS
16 #elif TARGET_OS_MAC
17 /* Mac OSX */
18 #define B_OS_DESKTOP
19 #else
20 /* Probably unsupported */
21 #define B_OS_DESKTOP
22 #endif
23 #elif __linux
24 /* Linux */
25 #define B_OS_DESKTOP
26 #else
27 /* Probably unsupported */
28 #define B_OS_DESKTOP
29 #endif
30 
31 #endif /* defined(B_OS_DETECT_H) */