| 1 |
/* |
| 2 |
* Copyright (c) 2021 |
| 3 |
* |
| 4 |
* Permission to use, copy, modify, and distribute this software for any |
| 5 |
* purpose with or without fee is hereby granted, provided that the above |
| 6 |
* copyright notice and this permission notice appear in all copies. |
| 7 |
* |
| 8 |
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 9 |
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 10 |
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| 11 |
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 12 |
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 13 |
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 14 |
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 15 |
*/ |
| 16 |
|
| 17 |
|
| 18 |
/* |
| 19 |
* TARGET_OS_SIMULATOR replaced TARGET_IPHONE_SIMULATOR and is not defined in older os versions |
| 20 |
*/ |
| 21 |
|
| 22 |
#include_next <TargetConditionals.h> |
| 23 |
|
| 24 |
#ifndef TARGET_OS_OSX |
| 25 |
# define TARGET_OS_OSX 1 |
| 26 |
#endif |
| 27 |
/* We never support these OSes */ |
| 28 |
#ifndef TARGET_OS_SIMULATOR |
| 29 |
# define TARGET_OS_SIMULATOR 0 |
| 30 |
#endif |
| 31 |
#ifndef TARGET_OS_IOS |
| 32 |
# define TARGET_OS_IOS 0 |
| 33 |
#endif |
| 34 |
#ifndef TARGET_OS_TV |
| 35 |
# define TARGET_OS_TV 0 |
| 36 |
#endif |
| 37 |
#ifndef TARGET_OS_WATCH |
| 38 |
# define TARGET_OS_WATCH 0 |
| 39 |
#endif |
| 40 |
#ifndef TARGET_OS_DRIVERKIT |
| 41 |
# define TARGET_OS_DRIVERKIT 0 |
| 42 |
#endif |
| 43 |
#ifndef TARGET_OS_MACCATALYST |
| 44 |
# define TARGET_OS_MACCATALYST 0 |
| 45 |
#endif |
| 46 |
/* If not defined, OS will never support ARM */ |
| 47 |
#ifndef TARGET_CPU_ARM |
| 48 |
# define TARGET_CPU_ARM 0 |
| 49 |
#endif |
| 50 |
#ifndef TARGET_CPU_ARM64 |
| 51 |
# define TARGET_CPU_ARM64 0 |
| 52 |
#endif |