mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Quick fix to make sure that @optional is available
This commit is contained in:
parent
23f8529b19
commit
2214368e53
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue