From 6eafd5f57e709fabd9edab080532042eb6f22663 Mon Sep 17 00:00:00 2001 From: Josh Codd Date: Tue, 26 Oct 2021 17:59:33 +0100 Subject: [PATCH] Redefine kIOMainPortDefault --- src/cocoa_platform.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/cocoa_platform.h b/src/cocoa_platform.h index 67c1a3cc..ed4ffc12 100644 --- a/src/cocoa_platform.h +++ b/src/cocoa_platform.h @@ -41,6 +41,13 @@ typedef void* id; #endif +// NOTE: Many Cocoa enum values have been renamed and we need to build across +// SDK versions where one is unavailable or the other deprecated +// We use the newer names in code and these macros to handle compatibility +#if MAC_OS_X_VERSION_MAX_ALLOWED < 120000 + #define kIOMainPortDefault kIOMasterPortDefault +#endif + // NOTE: Many Cocoa enum values have been renamed and we need to build across // SDK versions where one is unavailable or the other deprecated // We use the newer names in code and these macros to handle compatibility