Cricket Audio
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups
platform.h
Go to the documentation of this file.
1 // Copyright 2011 Cricket Technology
2 // www.crickettechnology.com
5 #pragma once
6 
7 // software platform
8 #undef CK_PLATFORM_IOS
9 #undef CK_PLATFORM_ANDROID
10 #undef CK_PLATFORM_MACOS
11 #undef CK_PLATFORM_WIN
12 
13 #ifdef __APPLE__
14 # include <TargetConditionals.h>
15 # if TARGET_OS_IPHONE
16 # define CK_PLATFORM_IOS 1
17 # else
18 # define CK_PLATFORM_MACOS 1
19 # endif
20 #elif defined(__ANDROID__)
21 # define CK_PLATFORM_ANDROID 1
22 #elif defined(_WIN64) || defined(_WIN32)
23 # define CK_PLATFORM_WIN 1
24 #endif
25 
26 #if CK_PLATFORM_MACOS && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1060)
27 # error "Mac OS 10.6 required!"
28 #endif
29 
30 #if !CK_PLATFORM_IOS && !CK_PLATFORM_ANDROID && !CK_PLATFORM_MACOS && !CK_PLATFORM_WIN
31 # error "Unsupported platform!"
32 #endif