diff options
author | truelight <truelight@openttd.org> | 2007-03-02 00:36:16 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-03-02 00:36:16 +0000 |
commit | 322953ad2e6496ae686bab4e2e66529807752ca9 (patch) | |
tree | 79ebb42a4991415c79c65f55e4228712e96dda42 /src/video | |
parent | 08973ba8ebc7630304810fdcae5a5b55e08e4990 (diff) | |
download | openttd-322953ad2e6496ae686bab4e2e66529807752ca9.tar.xz |
(svn r8967) -Fix (OSX): silent the warnings in cocoa_v.mm about deprecated stuff.. we know that\!
Diffstat (limited to 'src/video')
-rw-r--r-- | src/video/cocoa_v.mm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video/cocoa_v.mm b/src/video/cocoa_v.mm index 371f6b777..e6fa9d8d3 100644 --- a/src/video/cocoa_v.mm +++ b/src/video/cocoa_v.mm @@ -8,6 +8,14 @@ #ifdef WITH_COCOA +#include <AvailabilityMacros.h> +#if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4) +/* On 10.4, we get tons of warnings that the QuickDraw functions are deprecated. + * We know that. Don't keep bugging us about that. */ +# undef AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 +# define AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER +#endif + #import <Cocoa/Cocoa.h> #import <sys/time.h> /* gettimeofday */ #import <sys/param.h> /* for MAXPATHLEN */ |