Skip to content
Browse files

Slight clean up by adding a MOUNTAIN_LION define

  • Loading branch information...
1 parent dcd253f commit 3c5edea2af2f6208ac183ccbf65a0ac427cc4bf7 @lfranchi lfranchi committed Jan 16, 2013
Showing with 6 additions and 3 deletions.
  1. +5 −2 src/CMakeLists.osx.cmake
  2. +1 −1 src/mac/TomahawkApp_Mac.mm
View
7 src/CMakeLists.osx.cmake
@@ -28,14 +28,17 @@ if (APPLE)
# 9.8.0 -> 10.5/Leopard
# 10.4.0 -> 10.6/Snow Leopard
# 11.x.x -> Lion
+ # 12.x.x -> Mountain Lion
string(REGEX MATCH "[0-9]+" DARWIN_VERSION ${CMAKE_HOST_SYSTEM_VERSION})
- if (DARWIN_VERSION GREATER 10)
+ if (DARWIN_VERSION GREATER 11)
+ SET(MOUNTAIN_LION 1)
+ elseif (DARWIN_VERSION GREATER 10)
SET(LION 1)
elseif (DARWIN_VERSION GREATER 9)
SET(SNOW_LEOPARD 1)
elseif (DARWIN_VERSION GREATER 8)
SET(LEOPARD 1)
- endif (DARWIN_VERSION GREATER 10)
+ endif (DARWIN_VERSION GREATER 11)
# Use two different sparkle update tracks for debug and release
# We have to change the URL in the Info.plist file :-/
View
2 src/mac/TomahawkApp_Mac.mm
@@ -240,7 +240,7 @@ - (void)updater:(SUUpdater *)updater willInstallUpdate:(SUAppcastItem *)update
#endif
}
-#ifdef LION
+#if defined(LION) || defined(MOUNTAIN_LION)
#define SET_LION_FULLSCREEN NSWindowCollectionBehaviorFullScreenPrimary
#define LION_FULLSCREEN_ENTER_NOTIFICATION_VALUE NSWindowWillEnterFullScreenNotification
#define LION_FULLSCREEN_EXIT_NOTIFICATION_VALUE NSWindowDidExitFullScreenNotification

0 comments on commit 3c5edea

Please sign in to comment.
Something went wrong with that request. Please try again.