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.
This commit is contained in:
Mark Liversedge
2011-11-11 21:44:29 +00:00
parent d83a74dc08
commit 5c05cc6572

View File

@@ -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];