Skip to content

Commit

Permalink
Slight clean up by adding a MOUNTAIN_LION define
Browse files Browse the repository at this point in the history
  • Loading branch information
lfranchi committed Jan 16, 2013
1 parent dcd253f commit 3c5edea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/CMakeLists.osx.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 :-/
Expand Down
2 changes: 1 addition & 1 deletion src/mac/TomahawkApp_Mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3c5edea

Please sign in to comment.