aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/sdl/macosx/appmenu_osx.mm
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/sdl/macosx/appmenu_osx.mm')
-rw-r--r--backends/platform/sdl/macosx/appmenu_osx.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/platform/sdl/macosx/appmenu_osx.mm b/backends/platform/sdl/macosx/appmenu_osx.mm
index c839c20af0..9d7279f95c 100644
--- a/backends/platform/sdl/macosx/appmenu_osx.mm
+++ b/backends/platform/sdl/macosx/appmenu_osx.mm
@@ -35,6 +35,10 @@
#define NSEventModifierFlagOption NSAlternateKeyMask
#endif
+#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_10
+#define NSEventModifierFlags NSUInteger
+#endif
+
// Apple added setAppleMenu in 10.5 and removed it in 10.6.
// But as the method still exists we declare it ourselves here.
// Yes, this works :)