mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
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 <iain@sandoe.co.uk> fixincludes/ChangeLog: * fixincl.x: Regenerate. * inclhack.def (darwin_objc_runtime_1): New hack. * tests/base/objc/runtime.h: New file.
25 lines
768 B
C
25 lines
768 B
C
/* 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 */
|