]> git.mxchange.org Git - flightgear.git/commitdiff
Revised patch from Yves to fix Mac 10.5 compilation
authorJames Turner <zakalawe@mac.com>
Tue, 10 Jul 2012 07:39:11 +0000 (08:39 +0100)
committerJames Turner <zakalawe@mac.com>
Tue, 10 Jul 2012 07:39:11 +0000 (08:39 +0100)
NSMenuDelegate is an informal protocol before 10.6, so declare it locally in that case.

src/GUI/FGCocoaMenuBar.mm

index f34fc1490c3c9391c48bcf60b7cde7a15da62f8b..7bedc33d5abf9687ec6033d7a3e4cc39839a6e96 100644 (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