several macros added to properly support protocols containing @optional

also on GCC >= 4.6


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37525 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcus Müller 2013-12-30 13:37:40 +00:00
parent 6dd4f6fba1
commit 64d6268f40
7 changed files with 44 additions and 25 deletions

View file

@ -114,7 +114,7 @@ GS_EXPORT NSString * const NSNetServicesErrorDomain;
@protocol NSNetServiceDelegate
#ifdef __clang__ /* FIXME ... this is not clang specific */
#if OS_API_VERSION(MAC_OS_X_VERSION_10_6,GS_API_LATEST) && GS_PROTOCOLS_HAVE_OPTIONAL
@optional
#else
@end
@ -243,7 +243,7 @@ GS_EXPORT NSString * const NSNetServicesErrorDomain;
*/
@protocol NSNetServiceBrowserDelegate
#ifdef __clang__ /* FIXME ... this is not clang specific */
#if OS_API_VERSION(MAC_OS_X_VERSION_10_6,GS_API_LATEST) && GS_PROTOCOLS_HAVE_OPTIONAL
@optional
#else
@end