comparison src/video/cocoa/wnd_quickdraw.mm @ 12396:8bf38ad5c253 draft

(svn r16827) -Codechange: make OSX specific files include stdafx.h always as the first file. Also unify OSX specific stuff into osx_stdafx.h and remove unused includes.
author rubidium <rubidium@openttd.org>
date Tue, 14 Jul 2009 16:43:45 +0000
parents 592ae9307430
children d1ed749a9ce5
comparison
equal deleted inserted replaced
12395:c2eb8db929f0 12396:8bf38ad5c253
7 ******************************************************************************/ 7 ******************************************************************************/
8 8
9 #ifdef WITH_COCOA 9 #ifdef WITH_COCOA
10 #ifdef ENABLE_COCOA_QUICKDRAW 10 #ifdef ENABLE_COCOA_QUICKDRAW
11 11
12 #define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_3 12 #define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_10_3
13 #define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_10_3 13 #include "../../stdafx.h"
14 #include <AvailabilityMacros.h> 14
15 15 #define Rect OTTDRect
16 #define Point OTTDPoint
16 #import <Cocoa/Cocoa.h> 17 #import <Cocoa/Cocoa.h>
17 #import <sys/time.h> /* gettimeofday */ 18 #undef Rect
18 #import <sys/param.h> /* for MAXPATHLEN */ 19 #undef Point
19 #import <unistd.h> 20
21 #include "../../debug.h"
22 #include "../../rev.h"
23 #include "../../core/geometry_type.hpp"
24 #include "cocoa_v.h"
25 #include "../../core/math_func.hpp"
26 #include "../../gfx_func.h"
27 #include "../../functions.h"
20 28
21 /** 29 /**
22 * Important notice regarding all modifications!!!!!!! 30 * Important notice regarding all modifications!!!!!!!
23 * There are certain limitations because the file is objective C++. 31 * There are certain limitations because the file is objective C++.
24 * gdb has limitations. 32 * gdb has limitations.
25 * C++ and objective C code can't be joined in all cases (classes stuff). 33 * C++ and objective C code can't be joined in all cases (classes stuff).
26 * Read http://developer.apple.com/releasenotes/Cocoa/Objective-C++.html for more information. 34 * Read http://developer.apple.com/releasenotes/Cocoa/Objective-C++.html for more information.
27 */ 35 */
28
29
30 /* Defined in stdbool.h */
31 #ifndef __cplusplus
32 # ifndef __BEOS__
33 # undef bool
34 # undef false
35 # undef true
36 # endif
37 #endif
38
39
40 #include "../../stdafx.h"
41 #include "../../debug.h"
42 #include "../../rev.h"
43 #include "../../core/geometry_type.hpp"
44 #include "cocoa_v.h"
45 #include "../../core/math_func.hpp"
46 #include "../../gfx_func.h"
47 #include "../../functions.h"
48
49 #undef Rect
50 36
51 37
52 class WindowQuickdrawSubdriver; 38 class WindowQuickdrawSubdriver;
53 39
54 40