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:
Fred Kiefer 2011-11-07 19:01:27 +00:00
parent b39cd43a32
commit 8bbb8d2ade

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 />
*/