Index: src/runtime/ObjFWRT.h ================================================================== --- src/runtime/ObjFWRT.h +++ src/runtime/ObjFWRT.h @@ -178,10 +178,20 @@ struct objc_property_list { unsigned int count; struct objc_property_list *_Nullable next; struct objc_property properties[1]; }; + +struct objc_method_description { + const char *_Nonnull name; + const char *_Nonnull typeEncoding; +}; + +struct objc_method_description_list { + int count; + struct objc_method_description list[1]; +}; #ifdef __OBJC__ # if __has_attribute(__objc_root_class__) __attribute__((__objc_root_class__)) # endif @@ -192,12 +202,12 @@ typedef struct { #endif Class _Nonnull isa; const char *_Nonnull name; struct objc_protocol_list *_Nullable protocolList; - struct objc_abi_method_description_list *_Nullable instanceMethods; - struct objc_abi_method_description_list *_Nullable classMethods; + struct objc_method_description_list *_Nullable instanceMethods; + struct objc_method_description_list *_Nullable classMethods; #ifdef __OBJC__ } @end #else } Protocol; Index: src/runtime/private.h ================================================================== --- src/runtime/private.h +++ src/runtime/private.h @@ -70,20 +70,10 @@ struct objc_abi_method_list *_Nullable instanceMethods; struct objc_abi_method_list *_Nullable classMethods; struct objc_protocol_list *_Nullable protocols; }; -struct objc_abi_method_description { - const char *_Nonnull name; - const char *_Nonnull typeEncoding; -}; - -struct objc_abi_method_description_list { - int count; - struct objc_abi_method_description list[1]; -}; - struct objc_abi_static_instances { const char *_Nonnull className; id _Nullable instances[1]; };