Conditionally compile @required/@option in protocols

This commit is contained in:
Gregory John Casamento 2020-08-05 20:08:30 -04:00
parent 09098ead39
commit 68762dde65

View file

@ -50,7 +50,9 @@ typedef NSInteger NSTextInputTraitType;
@protocol NSTextInputTraits
#if GS_PROTOCOLS_HAVE_OPTIONAL
@optional
#endif
- (NSTextInputTraitType) autocorrectionType;
- (void) setAutocorrectionType: (NSTextInputTraitType)type;
- (NSTextInputTraitType) spellCheckingType;
@ -76,8 +78,9 @@ typedef NSInteger NSTextInputTraitType;
@protocol NSTextCheckingClient <NSTextInputClient, NSTextInputTraits>
#if GS_PROTOCOLS_HAVE_OPTIONAL
@required
#endif
- (void) addAnnotations: (NSDictionary *)annotations
range: (NSRange)range;