diff options
author | Michael Lutz <michi@icosahedron.de> | 2018-01-28 23:01:10 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2018-04-10 23:30:01 +0200 |
commit | 74b7f0a9aa7658857714db365853db8f6c8512bd (patch) | |
tree | 6a7dcd9456458fa5212236c90a4044542e040ec4 /src/video/cocoa/cocoa_v.h | |
parent | fa587ad3cc214351fc4de0500ca7b274f0955741 (diff) | |
download | openttd-74b7f0a9aa7658857714db365853db8f6c8512bd.tar.xz |
Fix: [OSX] Remove some OSX compiler warnings on newer SDKs/compilers.
Diffstat (limited to 'src/video/cocoa/cocoa_v.h')
-rw-r--r-- | src/video/cocoa/cocoa_v.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video/cocoa/cocoa_v.h b/src/video/cocoa/cocoa_v.h index 86085da62..564daefe0 100644 --- a/src/video/cocoa/cocoa_v.h +++ b/src/video/cocoa/cocoa_v.h @@ -259,7 +259,11 @@ uint QZ_ListModes(OTTD_Point *modes, uint max_modes, CGDirectDisplayID display_i @end /** Delegate for our NSWindow to send ask for quit on close */ -@interface OTTD_CocoaWindowDelegate : NSObject { +@interface OTTD_CocoaWindowDelegate : NSObject +#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6 + <NSWindowDelegate> +#endif +{ CocoaSubdriver *driver; } |