Index: src/OFHash.h ================================================================== --- src/OFHash.h +++ src/OFHash.h @@ -64,14 +64,14 @@ * The size of the buffer depends on the hash used. The buffer is part of the * receiver's memory pool. * * \return A buffer containing the hash */ -- (uint8_t*)digest; +- (uint8_t*)digest OF_RETURNS_INNER_POINTER; /** * \brief Returns a boolean whether the hash has already been calculated. * * \return A boolean whether the hash has already been calculated */ - (BOOL)isCalculated; @end Index: src/runtime/runtime.h ================================================================== --- src/runtime/runtime.h +++ src/runtime/runtime.h @@ -218,13 +218,15 @@ { return class_getName(object_getClass(obj)); } static inline BOOL -class_isMetaClass(Class cls) +class_isMetaClass(Class cls_) { + struct objc_class *cls = cls_; + return (cls->info & OBJC_CLASS_INFO_METACLASS); } #undef OBJC_BRIDGE #endif