From: James Turner Date: Tue, 10 Jul 2012 07:39:11 +0000 (+0100) Subject: Revised patch from Yves to fix Mac 10.5 compilation X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e226983835683c7d7d06026011a5048c755d53aa;p=flightgear.git 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. --- diff --git a/src/GUI/FGCocoaMenuBar.mm b/src/GUI/FGCocoaMenuBar.mm index f34fc1490..7bedc33d5 100644 --- a/src/GUI/FGCocoaMenuBar.mm +++ b/src/GUI/FGCocoaMenuBar.mm @@ -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 +@end +#endif @interface CocoaMenuDelegate : NSObject { @private