icculus@7925
|
1 |
/*
|
icculus@7925
|
2 |
Simple DirectMedia Layer
|
slouken@8149
|
3 |
Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
|
icculus@7925
|
4 |
|
icculus@7925
|
5 |
This software is provided 'as-is', without any express or implied
|
icculus@7925
|
6 |
warranty. In no event will the authors be held liable for any damages
|
icculus@7925
|
7 |
arising from the use of this software.
|
icculus@7925
|
8 |
|
icculus@7925
|
9 |
Permission is granted to anyone to use this software for any purpose,
|
icculus@7925
|
10 |
including commercial applications, and to alter it and redistribute it
|
icculus@7925
|
11 |
freely, subject to the following restrictions:
|
icculus@7925
|
12 |
|
icculus@7925
|
13 |
1. The origin of this software must not be misrepresented; you must not
|
icculus@7925
|
14 |
claim that you wrote the original software. If you use this software
|
icculus@7925
|
15 |
in a product, an acknowledgment in the product documentation would be
|
icculus@7925
|
16 |
appreciated but is not required.
|
icculus@7925
|
17 |
2. Altered source versions must be plainly marked as such, and must not be
|
icculus@7925
|
18 |
misrepresented as being the original software.
|
icculus@7925
|
19 |
3. This notice may not be removed or altered from any source distribution.
|
icculus@7925
|
20 |
*/
|
icculus@7925
|
21 |
|
icculus@7925
|
22 |
#ifndef _SDL_config_macosx_h
|
icculus@7925
|
23 |
#define _SDL_config_macosx_h
|
icculus@7925
|
24 |
|
icculus@7925
|
25 |
#include "SDL_platform.h"
|
icculus@7925
|
26 |
|
icculus@7925
|
27 |
/* This gets us MAC_OS_X_VERSION_MIN_REQUIRED... */
|
icculus@7925
|
28 |
#include <AvailabilityMacros.h>
|
icculus@7925
|
29 |
|
icculus@7925
|
30 |
/* This is a set of defines to configure the SDL features */
|
icculus@7925
|
31 |
|
icculus@7925
|
32 |
#ifdef __LP64__
|
icculus@7925
|
33 |
#define SIZEOF_VOIDP 8
|
icculus@7925
|
34 |
#else
|
icculus@7925
|
35 |
#define SIZEOF_VOIDP 4
|
icculus@7925
|
36 |
#endif
|
icculus@7925
|
37 |
|
icculus@7925
|
38 |
/* Useful headers */
|
icculus@7925
|
39 |
/* If we specified an SDK or have a post-PowerPC chip, then alloca.h exists. */
|
icculus@7925
|
40 |
#if ( (MAC_OS_X_VERSION_MIN_REQUIRED >= 1030) || (!defined(__POWERPC__)) )
|
icculus@7925
|
41 |
#define HAVE_ALLOCA_H 1
|
icculus@7925
|
42 |
#endif
|
icculus@7925
|
43 |
#define HAVE_SYS_TYPES_H 1
|
icculus@7925
|
44 |
#define HAVE_STDIO_H 1
|
icculus@7925
|
45 |
#define STDC_HEADERS 1
|
icculus@7925
|
46 |
#define HAVE_STRING_H 1
|
icculus@7925
|
47 |
#define HAVE_INTTYPES_H 1
|
icculus@7925
|
48 |
#define HAVE_STDINT_H 1
|
icculus@7925
|
49 |
#define HAVE_CTYPE_H 1
|
icculus@7925
|
50 |
#define HAVE_MATH_H 1
|
icculus@7925
|
51 |
#define HAVE_SIGNAL_H 1
|
icculus@7925
|
52 |
|
icculus@7925
|
53 |
/* C library functions */
|
icculus@7925
|
54 |
#define HAVE_MALLOC 1
|
icculus@7925
|
55 |
#define HAVE_CALLOC 1
|
icculus@7925
|
56 |
#define HAVE_REALLOC 1
|
icculus@7925
|
57 |
#define HAVE_FREE 1
|
icculus@7925
|
58 |
#define HAVE_ALLOCA 1
|
icculus@7925
|
59 |
#define HAVE_GETENV 1
|
icculus@7925
|
60 |
#define HAVE_SETENV 1
|
icculus@7925
|
61 |
#define HAVE_PUTENV 1
|
icculus@7925
|
62 |
#define HAVE_UNSETENV 1
|
icculus@7925
|
63 |
#define HAVE_QSORT 1
|
icculus@7925
|
64 |
#define HAVE_ABS 1
|
icculus@7925
|
65 |
#define HAVE_BCOPY 1
|
icculus@7925
|
66 |
#define HAVE_MEMSET 1
|
icculus@7925
|
67 |
#define HAVE_MEMCPY 1
|
icculus@7925
|
68 |
#define HAVE_MEMMOVE 1
|
icculus@7925
|
69 |
#define HAVE_MEMCMP 1
|
icculus@7925
|
70 |
#define HAVE_STRLEN 1
|
icculus@7925
|
71 |
#define HAVE_STRLCPY 1
|
icculus@7925
|
72 |
#define HAVE_STRLCAT 1
|
icculus@7925
|
73 |
#define HAVE_STRDUP 1
|
icculus@7925
|
74 |
#define HAVE_STRCHR 1
|
icculus@7925
|
75 |
#define HAVE_STRRCHR 1
|
icculus@7925
|
76 |
#define HAVE_STRSTR 1
|
icculus@7925
|
77 |
#define HAVE_STRTOL 1
|
icculus@7925
|
78 |
#define HAVE_STRTOUL 1
|
icculus@7925
|
79 |
#define HAVE_STRTOLL 1
|
icculus@7925
|
80 |
#define HAVE_STRTOULL 1
|
icculus@7925
|
81 |
#define HAVE_STRTOD 1
|
icculus@7925
|
82 |
#define HAVE_ATOI 1
|
icculus@7925
|
83 |
#define HAVE_ATOF 1
|
icculus@7925
|
84 |
#define HAVE_STRCMP 1
|
icculus@7925
|
85 |
#define HAVE_STRNCMP 1
|
icculus@7925
|
86 |
#define HAVE_STRCASECMP 1
|
icculus@7925
|
87 |
#define HAVE_STRNCASECMP 1
|
icculus@8089
|
88 |
#define HAVE_VSSCANF 1
|
icculus@7925
|
89 |
#define HAVE_VSNPRINTF 1
|
icculus@7925
|
90 |
#define HAVE_CEIL 1
|
icculus@7925
|
91 |
#define HAVE_COPYSIGN 1
|
icculus@7925
|
92 |
#define HAVE_COS 1
|
icculus@7925
|
93 |
#define HAVE_COSF 1
|
icculus@7925
|
94 |
#define HAVE_FABS 1
|
icculus@7925
|
95 |
#define HAVE_FLOOR 1
|
icculus@7925
|
96 |
#define HAVE_LOG 1
|
icculus@7925
|
97 |
#define HAVE_POW 1
|
icculus@7925
|
98 |
#define HAVE_SCALBN 1
|
icculus@7925
|
99 |
#define HAVE_SIN 1
|
icculus@7925
|
100 |
#define HAVE_SINF 1
|
icculus@7925
|
101 |
#define HAVE_SQRT 1
|
icculus@7925
|
102 |
#define HAVE_SIGACTION 1
|
icculus@7925
|
103 |
#define HAVE_SETJMP 1
|
icculus@7925
|
104 |
#define HAVE_NANOSLEEP 1
|
icculus@7925
|
105 |
#define HAVE_SYSCONF 1
|
icculus@7925
|
106 |
#define HAVE_SYSCTLBYNAME 1
|
icculus@7925
|
107 |
#define HAVE_ATAN 1
|
icculus@7925
|
108 |
#define HAVE_ATAN2 1
|
icculus@7925
|
109 |
|
icculus@7925
|
110 |
#ifndef SDL_AUDIO_DRIVER_DUMMY
|
icculus@7925
|
111 |
#define SDL_AUDIO_DRIVER_DUMMY 1
|
icculus@7925
|
112 |
#endif
|
icculus@7925
|
113 |
#ifndef SDL_AUDIO_DRIVER_DISK
|
icculus@7925
|
114 |
#define SDL_AUDIO_DRIVER_DISK 1
|
icculus@7925
|
115 |
#endif
|
icculus@7925
|
116 |
#ifndef SDL_VIDEO_DRIVER_DUMMY
|
icculus@7925
|
117 |
#define SDL_VIDEO_DRIVER_DUMMY 1
|
icculus@7925
|
118 |
#endif
|
icculus@7925
|
119 |
#ifndef SDL_VIDEO_RENDER_OGL
|
icculus@7925
|
120 |
#define SDL_VIDEO_RENDER_OGL 1
|
icculus@7925
|
121 |
#endif
|
icculus@7925
|
122 |
#ifndef SDL_VIDEO_OPENGL
|
icculus@7925
|
123 |
#define SDL_VIDEO_OPENGL 1
|
icculus@7925
|
124 |
#endif
|
icculus@7925
|
125 |
#ifndef SDL_AUDIO_DRIVER_COREAUDIO
|
icculus@7925
|
126 |
#define SDL_AUDIO_DRIVER_COREAUDIO 1
|
icculus@7925
|
127 |
#endif
|
icculus@7925
|
128 |
#ifndef SDL_POWER_MACOSX
|
icculus@7925
|
129 |
#define SDL_POWER_MACOSX 1
|
icculus@7925
|
130 |
#endif
|
icculus@7925
|
131 |
#ifndef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX
|
icculus@7925
|
132 |
#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1
|
icculus@7925
|
133 |
#endif
|
icculus@7925
|
134 |
#ifndef SDL_LOADSO_DLOPEN
|
icculus@7925
|
135 |
#define SDL_LOADSO_DLOPEN 1
|
icculus@7925
|
136 |
#endif
|
icculus@7925
|
137 |
#ifndef SDL_FILESYSTEM_COCOA
|
icculus@7925
|
138 |
#define SDL_FILESYSTEM_COCOA 1
|
icculus@7925
|
139 |
#endif
|
icculus@7925
|
140 |
#ifndef SDL_VIDEO_DRIVER_COCOA
|
icculus@7925
|
141 |
#define SDL_VIDEO_DRIVER_COCOA 1
|
icculus@7925
|
142 |
#endif
|
icculus@7925
|
143 |
#ifndef SDL_THREAD_PTHREAD
|
icculus@7925
|
144 |
#define SDL_THREAD_PTHREAD 1
|
icculus@7925
|
145 |
#endif
|
icculus@7925
|
146 |
#ifndef SDL_TIMER_UNIX
|
icculus@7925
|
147 |
#define SDL_TIMER_UNIX 1
|
icculus@7925
|
148 |
#endif
|
icculus@7925
|
149 |
#ifndef SDL_HAPTIC_IOKIT
|
icculus@7925
|
150 |
#define SDL_HAPTIC_IOKIT 1
|
icculus@7925
|
151 |
#endif
|
icculus@7925
|
152 |
#ifndef SDL_JOYSTICK_IOKIT
|
icculus@7925
|
153 |
#define SDL_JOYSTICK_IOKIT 1
|
icculus@7925
|
154 |
#endif
|
icculus@7925
|
155 |
|
icculus@7925
|
156 |
/* Enable various video drivers */
|
icculus@7925
|
157 |
#undef SDL_VIDEO_DRIVER_X11
|
icculus@7925
|
158 |
#define SDL_VIDEO_DRIVER_X11_DYNAMIC "/usr/X11R6/lib/libX11.6.dylib"
|
icculus@7925
|
159 |
#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "/usr/X11R6/lib/libXext.6.dylib"
|
icculus@7925
|
160 |
#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "/usr/X11R6/lib/libXinerama.1.dylib"
|
icculus@7925
|
161 |
#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "/usr/X11R6/lib/libXi.6.dylib"
|
icculus@7925
|
162 |
#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "/usr/X11R6/lib/libXrandr.2.dylib"
|
icculus@7925
|
163 |
#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "/usr/X11R6/lib/libXss.1.dylib"
|
icculus@7925
|
164 |
#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "/usr/X11R6/lib/libXxf86vm.1.dylib"
|
icculus@7925
|
165 |
#define SDL_VIDEO_DRIVER_X11_XINERAMA 1
|
icculus@7925
|
166 |
#define SDL_VIDEO_DRIVER_X11_XRANDR 1
|
icculus@7925
|
167 |
#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1
|
icculus@7925
|
168 |
#define SDL_VIDEO_DRIVER_X11_XSHAPE 1
|
icculus@7925
|
169 |
#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1
|
icculus@7925
|
170 |
#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1
|
icculus@7925
|
171 |
|
icculus@7925
|
172 |
#ifdef MAC_OS_X_VERSION_10_8
|
icculus@7925
|
173 |
/*
|
icculus@7925
|
174 |
* No matter the versions targeted, this is the 10.8 or later SDK, so you have
|
icculus@7925
|
175 |
* to use the external Xquartz, which is a more modern Xlib. Previous SDKs
|
icculus@7925
|
176 |
* used an older Xlib.
|
icculus@7925
|
177 |
*/
|
icculus@7925
|
178 |
#define SDL_VIDEO_DRIVER_X11_XINPUT2 1
|
icculus@7925
|
179 |
#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1
|
icculus@7925
|
180 |
#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1
|
icculus@7925
|
181 |
#endif
|
icculus@7925
|
182 |
|
icculus@7925
|
183 |
#ifndef SDL_VIDEO_RENDER_OGL
|
icculus@7925
|
184 |
#define SDL_VIDEO_RENDER_OGL 1
|
icculus@7925
|
185 |
#endif
|
icculus@7925
|
186 |
|
icculus@7925
|
187 |
/* Enable OpenGL support */
|
icculus@7925
|
188 |
#ifndef SDL_VIDEO_OPENGL
|
icculus@7925
|
189 |
#define SDL_VIDEO_OPENGL 1
|
icculus@7925
|
190 |
#endif
|
icculus@7925
|
191 |
#ifndef SDL_VIDEO_OPENGL_CGL
|
icculus@7925
|
192 |
#define SDL_VIDEO_OPENGL_CGL 1
|
icculus@7925
|
193 |
#endif
|
icculus@7925
|
194 |
#ifndef SDL_VIDEO_OPENGL_GLX
|
icculus@7925
|
195 |
#define SDL_VIDEO_OPENGL_GLX 1
|
icculus@7925
|
196 |
#endif
|
icculus@7925
|
197 |
|
icculus@7925
|
198 |
/* Enable assembly routines */
|
icculus@7925
|
199 |
#define SDL_ASSEMBLY_ROUTINES 1
|
icculus@7925
|
200 |
#ifdef __ppc__
|
icculus@7925
|
201 |
#define SDL_ALTIVEC_BLITTERS 1
|
icculus@7925
|
202 |
#endif
|
icculus@7925
|
203 |
|
icculus@7925
|
204 |
#endif /* _SDL_config_macosx_h */
|