MessagePack for C
ios.h
Go to the documentation of this file.
1 /*
2 Copyright Franz Detro 2014
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at
5 http://www.boost.org/LICENSE_1_0.txt)
6 */
7 
8 #ifndef MSGPACK_PREDEF_OS_IOS_H
9 #define MSGPACK_PREDEF_OS_IOS_H
10 
12 #include <msgpack/predef/make.h>
13 
14 /*`
15 [heading `MSGPACK_OS_IOS`]
16 
17 [@http://en.wikipedia.org/wiki/iOS iOS] operating system.
18 
19 [table
20  [[__predef_symbol__] [__predef_version__]]
21 
22  [[`__APPLE__`] [__predef_detection__]]
23  [[`__MACH__`] [__predef_detection__]]
24  [[`__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__`] [__predef_detection__]]
25 
26  [[`__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__`] [__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__*1000]]
27  ]
28  */
29 
30 #define MSGPACK_OS_IOS MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
31 
32 #if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \
33  defined(__APPLE__) && defined(__MACH__) && \
34  defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) \
35  )
36 # undef MSGPACK_OS_IOS
37 # define MSGPACK_OS_IOS (__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__*1000)
38 #endif
39 
40 #if MSGPACK_OS_IOS
41 # define MSGPACK_OS_IOS_AVAILABLE
43 #endif
44 
45 #define MSGPACK_OS_IOS_NAME "iOS"
46 
49 
50 
51 #endif
#define MSGPACK_OS_IOS
Definition: ios.h:30
#define MSGPACK_PREDEF_DECLARE_TEST(x, s)
Definition: test.h:13
#define MSGPACK_OS_IOS_NAME
Definition: ios.h:45