From 4b7d77bb2fc7dcf63584fe1ee9b8857263b8a74b Mon Sep 17 00:00:00 2001 From: Ken Cunningham Date: Fri, 2 Apr 2021 22:11:50 -0700 Subject: [PATCH] TargetConditionals: add TARGET_OS_OSX if needed --- README.md | 3 ++- include/TargetConditionals.h | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 265fa6b..ebf128f 100644 --- a/README.md +++ b/README.md @@ -160,7 +160,8 @@ Wrapped headers and replaced functions are: TargetConditionals.h - Adds definition for TARGET_OS_SIMULATOR if needed. + Adds definition for TARGET_OS_SIMULATOR and + TARGET_OS_OSX if needed. OSX10.10 diff --git a/include/TargetConditionals.h b/include/TargetConditionals.h index 9b4af1e..d90bfc8 100644 --- a/include/TargetConditionals.h +++ b/include/TargetConditionals.h @@ -24,3 +24,7 @@ #ifndef TARGET_OS_SIMULATOR # define TARGET_OS_SIMULATOR 0 #endif + +#ifndef TARGET_OS_OSX +# define TARGET_OS_OSX 1 +#endif