mirrored from git://gcc.gnu.org/git/gcc.git
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Darwin, fixincludes: Handle Apple Blocks in objc/runtime.h.
The macOS 13 SDK has unguarded Apple Blocks use in objc/runtime.h which causes most of the objective-c tests to fail. Signed-off-by: Iain Sandoe <[email protected]> fixincludes/ChangeLog: * fixincl.x: Regenerate. * inclhack.def (darwin_objc_runtime_1): New hack. * tests/base/objc/runtime.h: New file.
- Loading branch information
Showing
3 changed files
with
117 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* DO NOT EDIT THIS FILE. | ||
It has been auto-edited by fixincludes from: | ||
"fixinc/tests/inc/objc/runtime.h" | ||
This had to be done to correct non-standard usages in the | ||
original, manufacturer supplied header file. */ | ||
|
||
|
||
|
||
#if defined( DARWIN_OBJC_RUNTIME_1_CHECK ) | ||
#if __BLOCKS__ | ||
OBJC_EXPORT void | ||
objc_enumerateClasses(const void * _Nullable image, | ||
const char * _Nullable namePrefix, | ||
Protocol * _Nullable conformingTo, | ||
Class _Nullable subclassing, | ||
void (^ _Nonnull block)(Class _Nonnull aClass, BOOL * _Nonnull stop) | ||
OBJC_NOESCAPE) | ||
OBJC_AVAILABLE(13.0, 16.0, 16.0, 9.0, 7.0) | ||
OBJC_REFINED_FOR_SWIFT; | ||
#endif | ||
#endif /* DARWIN_OBJC_RUNTIME_1_CHECK */ |