Index: src/OFBlock.m ================================================================== --- src/OFBlock.m +++ src/OFBlock.m @@ -14,10 +14,15 @@ #include #include #include #import "OFBlock.h" + +@protocol RetainRelease +- retain; +- (void)release; +@end #if defined(OF_GNU_RUNTIME) || defined(OF_OBJFW_RUNTIME) struct objc_abi_class { struct objc_abi_metaclass *metaclass; const char *superclass, *name; Index: src/OFString+XMLUnescaping.h ================================================================== --- src/OFString+XMLUnescaping.h +++ src/OFString+XMLUnescaping.h @@ -52,14 +52,16 @@ * \param h An OFXMLUnescapingDelegate as a handler for unknown entities */ - (OFString*)stringByXMLUnescapingWithDelegate: (id )delegate; +#ifdef OF_HAVE_BLOCKS /** * Unescapes XML in the string and uses the specified block for unknown * entities. * * \param h A block as a handler for unknown entities */ - (OFString*)stringByXMLUnescapingWithBlock: (of_string_xml_unescaping_block_t)block; +#endif @end