Permalink
Browse files

MACOSX: Fix compilation with the 10.4 SDK

  • Loading branch information...
ccawley2011 authored and digitall committed Aug 28, 2018
1 parent ce9e90d commit 9dc2820a33630df29b2583ae595ea0591bc7efd5
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 9dc2820

Please sign in to comment.