From 3c1838cd60b419f9650b536e93a5ec1b7e42ed5b Mon Sep 17 00:00:00 2001 From: Gregory John Casamento Date: Thu, 26 Mar 2020 09:29:55 -0400 Subject: [PATCH 1/2] Add minor typedef --- Headers/Foundation/NSObjCRuntime.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Headers/Foundation/NSObjCRuntime.h b/Headers/Foundation/NSObjCRuntime.h index 53fd04ad3..ad43ecc8f 100644 --- a/Headers/Foundation/NSObjCRuntime.h +++ b/Headers/Foundation/NSObjCRuntime.h @@ -283,6 +283,11 @@ DEFINE_BLOCK_TYPE(NSComparator, NSComparisonResult, id, id); } #endif +/** + * Declare NSExceptionName + */ +typedef NSString* NSExceptionName; + /** * Declare Apple availability macros for compatibility purposes as no-ops. */ From 64c193bd7c2928cb3894971efbdb4fc1560c5e9d Mon Sep 17 00:00:00 2001 From: Gregory John Casamento Date: Fri, 27 Mar 2020 00:48:07 -0400 Subject: [PATCH 2/2] Move typedef to correct place --- Headers/Foundation/NSObjCRuntime.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Headers/Foundation/NSObjCRuntime.h b/Headers/Foundation/NSObjCRuntime.h index ad43ecc8f..2bd0b9a2d 100644 --- a/Headers/Foundation/NSObjCRuntime.h +++ b/Headers/Foundation/NSObjCRuntime.h @@ -279,14 +279,14 @@ DEFINE_BLOCK_TYPE(NSComparator, NSComparisonResult, id, id); */ #define FOUNDATION_EXPORT GS_EXPORT -#if defined(__cplusplus) -} -#endif - /** * Declare NSExceptionName */ typedef NSString* NSExceptionName; + +#if defined(__cplusplus) +} +#endif /** * Declare Apple availability macros for compatibility purposes as no-ops.