@@ -95,10 +95,16 @@ #if __has_attribute(objc_requires_super) # define OF_REQUIRES_SUPER __attribute__((objc_requires_super)) #else # define OF_REQUIRES_SUPER #endif + +#if __has_attribute(objc_root_class) +# define OF_ROOT_CLASS __attribute__((objc_root_class)) +#else +# define OF_ROOT_CLASS +#endif #ifdef OF_APPLE_RUNTIME # if defined(__x86_64__) || defined(__i386__) || defined(__arm__) || \ defined(__ppc__) # define OF_HAVE_FORWARDING_TARGET_FOR_SELECTOR @@ -380,10 +386,11 @@ @end /*! * @brief The root class for all other classes inside ObjFW. */ +OF_ROOT_CLASS @interface OFObject { @public Class _isa; }