From 0f4b1bc91bd5c771556f785a1746f93210634520 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Tue, 20 Sep 2011 17:52:54 -0400 Subject: [PATCH] Try another way to Lion-check --- src/mac/tomahawkapp_mac.mm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/mac/tomahawkapp_mac.mm b/src/mac/tomahawkapp_mac.mm index 1ab61b0e9..4f559d693 100644 --- a/src/mac/tomahawkapp_mac.mm +++ b/src/mac/tomahawkapp_mac.mm @@ -20,9 +20,10 @@ #include "macdelegate.h" #include "macshortcuthandler.h" -#include "tomahawkapp.h" #include "config.h" +#include "AvailabilityMacros.h" + #import #import #import @@ -40,6 +41,10 @@ #import #endif +#if defined(MAC_OS_X_VERSION_10_7) +#include "tomahawkapp.h" +#endif + #include // Capture global media keys on Mac (Cocoa only!) @@ -236,7 +241,8 @@ void Tomahawk::checkForUpdates() { void Tomahawk::enableFullscreen() { -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7 +#if defined(MAC_OS_X_VERSION_10_7) + qDebug() << "Enabling Lion Full-screeen"; NSView *nsview = (NSView *)APP->mainWindow()->winId(); NSWindow *nswindow = [nsview window]; [nswindow setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];