Permalink
Browse files

MACOSX: Fix compilation with the 10.9 SDK and below

  • Loading branch information...
ccawley2011 authored and sev- committed Aug 19, 2018
1 parent cb28ebc commit 8b5f7d247a8d7900e64e3718a13ad890861032e2
Showing with 8 additions and 0 deletions.
  1. +4 −0 backends/platform/sdl/macosx/appmenu_osx.mm
  2. +4 −0 backends/platform/sdl/macosx/macosx-compat.h
@@ -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 :)
@@ -29,6 +29,10 @@
#define MAC_OS_X_VERSION_10_5 1050
#endif

#ifndef MAC_OS_X_VERSION_10_10
#define MAC_OS_X_VERSION_10_10 101000
#endif

#ifndef MAC_OS_X_VERSION_10_12
#define MAC_OS_X_VERSION_10_12 101200
#endif

0 comments on commit 8b5f7d2

Please sign in to comment.