Make the new protocol optional for clang by protecting the definition

the same way as in NSNetServices.h


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34134 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2011-11-07 19:01:27 +00:00
parent e0f7a690d5
commit ce8663684e

View file

@ -190,6 +190,12 @@ GS_EXPORT NSString* const NSXMLParserErrorDomain;
* This is now a formal protocol.
*/
@protocol NSXMLParserDelegate <NSObject>
#ifdef __clang__
@optional
#else
@end
@interface NSObject (NSXMLParserDelegateEventAdditions)
#endif
/** <override-dummy />
*/