From 5c05cc6572d2cf4a06996e759e367f7594204e9a Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Fri, 11 Nov 2011 21:44:29 +0000 Subject: [PATCH] Mac Video use GC_HAVE_LION When compiling the Mac video stuff on Lion with SDK10.5 the code used a pre-processor directive to include code based upon the max version allowed. But if you are using an earlier SDK the max version allowed is still higher, so instead we use the GC_HAVE_LION define instead. This change only really affects anyone on Lion or higher building with an earlier version of the SDK. --- src/QtMacVideoWindow.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/QtMacVideoWindow.mm b/src/QtMacVideoWindow.mm index 920e8e1d1..a703d5606 100644 --- a/src/QtMacVideoWindow.mm +++ b/src/QtMacVideoWindow.mm @@ -117,7 +117,7 @@ void VideoWindow::mediaSelected(QString filename) NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys: file, QTMovieFileNameAttribute, num, QTMovieLoopsAttribute, -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6 +#ifdef GC_HAVE_LION num, QTMovieOpenForPlaybackAttribute, #endif nil];