1
0
Fork 0

Revised patch from Yves to fix Mac 10.5 compilation

NSMenuDelegate is an informal protocol before 10.6, so declare it locally in that case.
This commit is contained in:
James Turner 2012-07-10 08:39:11 +01:00
parent 7edbf8a8c9
commit e226983835

View file

@ -39,6 +39,11 @@ public:
MenuItemBindings itemBindings;
};
// prior to the 10.6 SDK, NSMenuDelegate was an informal protocol
#if __MAC_OS_X_VERSION_MIN_REQUIRED < 1060
@protocol NSMenuDelegate <NSObject>
@end
#endif
@interface CocoaMenuDelegate : NSObject <NSMenuDelegate> {
@private