MessagePack for C
Loading...
Searching...
No Matches
ios.h
Go to the documentation of this file.
1/*
2Copyright Ruslan Baratov 2017
3Copyright Rene Rivera 2017
4Distributed under the Boost Software License, Version 1.0.
5(See accompanying file LICENSE_1_0.txt or copy at
6http://www.boost.org/LICENSE_1_0.txt)
7*/
8
9#ifndef MSGPACK_PREDEF_PLAT_IOS_H
10#define MSGPACK_PREDEF_PLAT_IOS_H
11
12#include <msgpack/predef/os/ios.h> // MSGPACK_OS_IOS
13#include <msgpack/predef/version_number.h> // MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
14
15/*`
16[heading `MSGPACK_PLAT_IOS_DEVICE`]
17[heading `MSGPACK_PLAT_IOS_SIMULATOR`]
18
19[table
20 [[__predef_symbol__] [__predef_version__]]
21
22 [[`TARGET_IPHONE_SIMULATOR`] [__predef_detection__]]
23 ]
24 */
25
26#define MSGPACK_PLAT_IOS_DEVICE MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
27#define MSGPACK_PLAT_IOS_SIMULATOR MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
28
29// https://opensource.apple.com/source/CarbonHeaders/CarbonHeaders-18.1/TargetConditionals.h
30#if MSGPACK_OS_IOS
31# include <TargetConditionals.h>
32# if TARGET_IPHONE_SIMULATOR == 1
33# undef MSGPACK_PLAT_IOS_SIMULATOR
34# define MSGPACK_PLAT_IOS_SIMULATOR MSGPACK_VERSION_NUMBER_AVAILABLE
35# else
36# undef MSGPACK_PLAT_IOS_DEVICE
37# define MSGPACK_PLAT_IOS_DEVICE MSGPACK_VERSION_NUMBER_AVAILABLE
38# endif
39#endif
40
41#if MSGPACK_PLAT_IOS_SIMULATOR
42# define MSGPACK_PLAT_IOS_SIMULATOR_AVAILABLE
44#endif
45
46#if MSGPACK_PLAT_IOS_DEVICE
47# define MSGPACK_PLAT_IOS_DEVICE_AVAILABLE
49#endif
50
51#define MSGPACK_PLAT_IOS_SIMULATOR_NAME "iOS Simulator"
52#define MSGPACK_PLAT_IOS_DEVICE_NAME "iOS Device"
53
54#endif // MSGPACK_PREDEF_PLAT_IOS_H
55
#define MSGPACK_PLAT_IOS_SIMULATOR_NAME
Definition ios.h:51
#define MSGPACK_PLAT_IOS_DEVICE
Definition ios.h:26
#define MSGPACK_PLAT_IOS_SIMULATOR
Definition ios.h:27
#define MSGPACK_PLAT_IOS_DEVICE_NAME
Definition ios.h:52
#define MSGPACK_PREDEF_DECLARE_TEST(x, s)
Definition test.h:13