Permalink
Browse files

MACOSX: Fix compilation with the 10.4 SDK

  • Loading branch information...
ccawley2011 committed Aug 28, 2018
1 parent aa23613 commit 9602f383739dbe8ee0a5ffec4b266f84c7dbab34
Showing with 4 additions and 0 deletions.
  1. +4 −0 backends/platform/sdl/macosx/appmenu_osx.mm
@@ -39,6 +39,10 @@
#define NSEventModifierFlags NSUInteger
#endif

#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_5
typedef unsigned long 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 :)

0 comments on commit 9602f38

Please sign in to comment.