Quick fix to make sure that @optional is available

This commit is contained in:
Gregory John Casamento 2021-10-03 19:50:19 -04:00
parent 23f8529b19
commit 2214368e53
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2021-10-03 Gregory John Casamento <greg.casamento@gmail.com>
* Headers/AppKit/NSComboBox.h: Add check to see if @optional
is available.
2021-10-02 Gregory John Casamento <greg.casamento@gmail.com>
* Source/GSToolTips.m: Use RELEASE and AUTORELEASE macros where

View file

@ -96,7 +96,9 @@
#if OS_API_VERSION(MAC_OS_X_VERSION_10_6, GS_API_LATEST)
@protocol NSComboBoxDataSource <NSObject>
#if GS_PROTOCOLS_HAVE_OPTIONAL
@optional
#endif
#else
@interface NSObject (NSComboBoxDataSource)
#endif
@ -113,7 +115,9 @@
#if OS_API_VERSION(MAC_OS_X_VERSION_10_6, GS_API_LATEST)
@protocol NSComboBoxDelegate <NSTextFieldDelegate>
#if GS_PROTOCOLS_HAVE_OPTIONAL
@optional
#endif
#else
@interface NSObject (NSComboBoxNotifications)
#endif