(svn r11540) -Fix: [OSX] Don't try to compile the quartz video driver on OSX 10.3. It will fail
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
#ifndef VIDEO_COCOA_H
|
||||
#define VIDEO_COCOA_H
|
||||
|
||||
#include <AvailabilityMacros.h>
|
||||
|
||||
#include "../video_driver.hpp"
|
||||
|
||||
class VideoDriver_Cocoa: public VideoDriver {
|
||||
@@ -59,9 +61,12 @@ public:
|
||||
extern CocoaSubdriver* _cocoa_subdriver;
|
||||
|
||||
CocoaSubdriver *QZ_CreateFullscreenSubdriver(int width, int height, int bpp);
|
||||
CocoaSubdriver *QZ_CreateWindowQuartzSubdriver(int width, int height, int bpp);
|
||||
CocoaSubdriver *QZ_CreateWindowQuickdrawSubdriver(int width, int height, int bpp);
|
||||
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
|
||||
CocoaSubdriver *QZ_CreateWindowQuartzSubdriver(int width, int height, int bpp);
|
||||
#endif
|
||||
|
||||
void QZ_GameSizeChanged();
|
||||
|
||||
void QZ_GameLoop();
|
||||
|
@@ -232,10 +232,12 @@ static CocoaSubdriver *QZ_CreateWindowSubdriver(int width, int height, int bpp)
|
||||
{
|
||||
CocoaSubdriver *ret;
|
||||
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
|
||||
if (MacOSVersionIsAtLeast(10, 4, 0)) {
|
||||
ret = QZ_CreateWindowQuartzSubdriver(width, height, bpp);
|
||||
if (ret != NULL) return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
ret = QZ_CreateWindowQuickdrawSubdriver(width, height, bpp);
|
||||
if (ret != NULL) return ret;
|
||||
|
@@ -8,9 +8,10 @@
|
||||
|
||||
#ifdef WITH_COCOA
|
||||
|
||||
#define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_4
|
||||
#include <AvailabilityMacros.h>
|
||||
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#import <sys/time.h> /* gettimeofday */
|
||||
#import <sys/param.h> /* for MAXPATHLEN */
|
||||
@@ -801,4 +802,5 @@ CocoaSubdriver *QZ_CreateWindowQuartzSubdriver(int width, int height, int bpp)
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endif /* MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4 */
|
||||
#endif /* WITH_COCOA */
|
||||
|
Reference in New Issue
Block a user