Navigation Menu

Skip to content

Commit

Permalink
MACOSX: Fix compilation with the 10.4 SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
ccawley2011 committed Aug 28, 2018
1 parent aa23613 commit 9602f38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backends/platform/sdl/macosx/appmenu_osx.mm
Expand Up @@ -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 :)
Expand Down

0 comments on commit 9602f38

Please sign in to comment.