diff options
author | bjarni <bjarni@openttd.org> | 2007-11-30 13:26:24 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2007-11-30 13:26:24 +0000 |
commit | 40cb6922bd4af836602846de9f9752da0e0abe84 (patch) | |
tree | 6de5e7a7d16658fd3ee19517762435165e9c8ca9 /src/video/cocoa/cocoa_v.h | |
parent | f9f6c757f78e07582bad15a40847fc569aa03619 (diff) | |
download | openttd-40cb6922bd4af836602846de9f9752da0e0abe84.tar.xz |
(svn r11540) -Fix: [OSX] Don't try to compile the quartz video driver on OSX 10.3. It will fail
Diffstat (limited to 'src/video/cocoa/cocoa_v.h')
-rw-r--r-- | src/video/cocoa/cocoa_v.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/video/cocoa/cocoa_v.h b/src/video/cocoa/cocoa_v.h index 0fdc48645..2be0100df 100644 --- a/src/video/cocoa/cocoa_v.h +++ b/src/video/cocoa/cocoa_v.h @@ -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(); |