Rev 1 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1 | Rev 8 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | /* |
1 | /* |
| 2 | Simple DirectMedia Layer |
2 | Simple DirectMedia Layer |
| 3 | Copyright (C) 1997- |
3 | Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org> |
| 4 | 4 | ||
| 5 | This software is provided 'as-is', without any express or implied |
5 | This software is provided 'as-is', without any express or implied |
| 6 | warranty. In no event will the authors be held liable for any damages |
6 | warranty. In no event will the authors be held liable for any damages |
| 7 | arising from the use of this software. |
7 | arising from the use of this software. |
| 8 | 8 | ||
| Line 85... | Line 85... | ||
| 85 | #define HAVE_STRNCMP 1 |
85 | #define HAVE_STRNCMP 1 |
| 86 | #define HAVE_STRCASECMP 1 |
86 | #define HAVE_STRCASECMP 1 |
| 87 | #define HAVE_STRNCASECMP 1 |
87 | #define HAVE_STRNCASECMP 1 |
| 88 | #define HAVE_VSSCANF 1 |
88 | #define HAVE_VSSCANF 1 |
| 89 | #define HAVE_VSNPRINTF 1 |
89 | #define HAVE_VSNPRINTF 1 |
| - | 90 | #define HAVE_M_PI 1 |
|
| - | 91 | #define HAVE_ACOS 1 |
|
| - | 92 | #define HAVE_ACOSF 1 |
|
| - | 93 | #define HAVE_ASIN 1 |
|
| - | 94 | #define HAVE_ASINF 1 |
|
| - | 95 | #define HAVE_ATAN 1 |
|
| - | 96 | #define HAVE_ATANF 1 |
|
| - | 97 | #define HAVE_ATAN2 1 |
|
| - | 98 | #define HAVE_ATAN2F 1 |
|
| 90 | #define HAVE_CEIL 1 |
99 | #define HAVE_CEIL 1 |
| - | 100 | #define HAVE_CEILF 1 |
|
| 91 | #define HAVE_COPYSIGN 1 |
101 | #define HAVE_COPYSIGN 1 |
| - | 102 | #define HAVE_COPYSIGNF 1 |
|
| 92 | #define HAVE_COS 1 |
103 | #define HAVE_COS 1 |
| 93 | #define HAVE_COSF 1 |
104 | #define HAVE_COSF 1 |
| - | 105 | #define HAVE_EXP 1 |
|
| - | 106 | #define HAVE_EXPF 1 |
|
| 94 | #define HAVE_FABS 1 |
107 | #define HAVE_FABS 1 |
| - | 108 | #define HAVE_FABSF 1 |
|
| 95 | #define HAVE_FLOOR 1 |
109 | #define HAVE_FLOOR 1 |
| - | 110 | #define HAVE_FLOORF 1 |
|
| - | 111 | #define HAVE_FMOD 1 |
|
| - | 112 | #define HAVE_FMODF 1 |
|
| 96 | #define HAVE_LOG 1 |
113 | #define HAVE_LOG 1 |
| - | 114 | #define HAVE_LOGF 1 |
|
| - | 115 | #define HAVE_LOG10 1 |
|
| - | 116 | #define HAVE_LOG10F 1 |
|
| 97 | #define HAVE_POW 1 |
117 | #define HAVE_POW 1 |
| - | 118 | #define HAVE_POWF 1 |
|
| 98 | #define HAVE_SCALBN 1 |
119 | #define HAVE_SCALBN 1 |
| - | 120 | #define HAVE_SCALBNF 1 |
|
| 99 | #define HAVE_SIN 1 |
121 | #define HAVE_SIN 1 |
| 100 | #define HAVE_SINF 1 |
122 | #define HAVE_SINF 1 |
| 101 | #define HAVE_SQRT 1 |
123 | #define HAVE_SQRT 1 |
| 102 | #define HAVE_SQRTF 1 |
124 | #define HAVE_SQRTF 1 |
| 103 | #define HAVE_TAN 1 |
125 | #define HAVE_TAN 1 |
| Line 105... | Line 127... | ||
| 105 | #define HAVE_SIGACTION 1 |
127 | #define HAVE_SIGACTION 1 |
| 106 | #define HAVE_SETJMP 1 |
128 | #define HAVE_SETJMP 1 |
| 107 | #define HAVE_NANOSLEEP 1 |
129 | #define HAVE_NANOSLEEP 1 |
| 108 | #define HAVE_SYSCONF 1 |
130 | #define HAVE_SYSCONF 1 |
| 109 | #define HAVE_SYSCTLBYNAME 1 |
131 | #define HAVE_SYSCTLBYNAME 1 |
| 110 | #define HAVE_ATAN 1 |
- | |
| 111 | #define HAVE_ATAN2 1 |
- | |
| 112 | #define HAVE_ACOS 1 |
- | |
| 113 | #define HAVE_ASIN 1 |
- | |
| 114 | 132 | ||
| 115 | /* Enable various audio drivers */ |
133 | /* Enable various audio drivers */ |
| 116 | #define SDL_AUDIO_DRIVER_COREAUDIO 1 |
134 | #define SDL_AUDIO_DRIVER_COREAUDIO 1 |
| 117 | #define SDL_AUDIO_DRIVER_DISK 1 |
135 | #define SDL_AUDIO_DRIVER_DISK 1 |
| 118 | #define SDL_AUDIO_DRIVER_DUMMY 1 |
136 | #define SDL_AUDIO_DRIVER_DUMMY 1 |
| 119 | 137 | ||
| 120 | /* Enable various input drivers */ |
138 | /* Enable various input drivers */ |
| 121 | #define SDL_JOYSTICK_IOKIT 1 |
139 | #define SDL_JOYSTICK_IOKIT 1 |
| - | 140 | #define SDL_JOYSTICK_HIDAPI 1 |
|
| 122 | #define SDL_HAPTIC_IOKIT 1 |
141 | #define SDL_HAPTIC_IOKIT 1 |
| - | 142 | ||
| - | 143 | /* Enable the dummy sensor driver */ |
|
| - | 144 | #define SDL_SENSOR_DUMMY 1 |
|
| 123 | 145 | ||
| 124 | /* Enable various shared object loading systems */ |
146 | /* Enable various shared object loading systems */ |
| 125 | #define SDL_LOADSO_DLOPEN 1 |
147 | #define SDL_LOADSO_DLOPEN 1 |
| 126 | 148 | ||
| 127 | /* Enable various threading systems */ |
149 | /* Enable various threading systems */ |
| Line 161... | Line 183... | ||
| 161 | #define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1 |
183 | #define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1 |
| 162 | #endif |
184 | #endif |
| 163 | 185 | ||
| 164 | #ifndef SDL_VIDEO_RENDER_OGL |
186 | #ifndef SDL_VIDEO_RENDER_OGL |
| 165 | #define SDL_VIDEO_RENDER_OGL 1 |
187 | #define SDL_VIDEO_RENDER_OGL 1 |
| - | 188 | #endif |
|
| - | 189 | ||
| - | 190 | #ifndef SDL_VIDEO_RENDER_OGL_ES2 |
|
| - | 191 | #define SDL_VIDEO_RENDER_OGL_ES2 1 |
|
| - | 192 | #endif |
|
| - | 193 | ||
| - | 194 | #ifndef SDL_VIDEO_RENDER_METAL |
|
| - | 195 | /* Metal only supported on 64-bit architectures with 10.11+ */ |
|
| - | 196 | #if TARGET_CPU_X86_64 && (MAC_OS_X_VERSION_MAX_ALLOWED >= 101100) |
|
| - | 197 | #define SDL_VIDEO_RENDER_METAL 1 |
|
| - | 198 | #else |
|
| - | 199 | #define SDL_VIDEO_RENDER_METAL 0 |
|
| - | 200 | #endif |
|
| 166 | #endif |
201 | #endif |
| 167 | 202 | ||
| 168 | /* Enable OpenGL support */ |
203 | /* Enable OpenGL support */ |
| 169 | #ifndef SDL_VIDEO_OPENGL |
204 | #ifndef SDL_VIDEO_OPENGL |
| 170 | #define SDL_VIDEO_OPENGL 1 |
205 | #define SDL_VIDEO_OPENGL 1 |
| - | 206 | #endif |
|
| - | 207 | #ifndef SDL_VIDEO_OPENGL_ES2 |
|
| - | 208 | #define SDL_VIDEO_OPENGL_ES2 1 |
|
| - | 209 | #endif |
|
| - | 210 | #ifndef SDL_VIDEO_OPENGL_EGL |
|
| - | 211 | #define SDL_VIDEO_OPENGL_EGL 1 |
|
| 171 | #endif |
212 | #endif |
| 172 | #ifndef SDL_VIDEO_OPENGL_CGL |
213 | #ifndef SDL_VIDEO_OPENGL_CGL |
| 173 | #define SDL_VIDEO_OPENGL_CGL 1 |
214 | #define SDL_VIDEO_OPENGL_CGL 1 |
| 174 | #endif |
215 | #endif |
| 175 | #ifndef SDL_VIDEO_OPENGL_GLX |
216 | #ifndef SDL_VIDEO_OPENGL_GLX |
| Line 179... | Line 220... | ||
| 179 | /* Enable Vulkan support */ |
220 | /* Enable Vulkan support */ |
| 180 | /* Metal/MoltenVK/Vulkan only supported on 64-bit architectures with 10.11+ */ |
221 | /* Metal/MoltenVK/Vulkan only supported on 64-bit architectures with 10.11+ */ |
| 181 | #if TARGET_CPU_X86_64 && (MAC_OS_X_VERSION_MAX_ALLOWED >= 101100) |
222 | #if TARGET_CPU_X86_64 && (MAC_OS_X_VERSION_MAX_ALLOWED >= 101100) |
| 182 | #define SDL_VIDEO_VULKAN 1 |
223 | #define SDL_VIDEO_VULKAN 1 |
| 183 | #else |
224 | #else |
| 184 | #define |
225 | #define SDL_VIDEO_VULKAN 0 |
| 185 | #endif |
226 | #endif |
| 186 | 227 | ||
| 187 | /* Enable system power support */ |
228 | /* Enable system power support */ |
| 188 | #define SDL_POWER_MACOSX 1 |
229 | #define SDL_POWER_MACOSX 1 |
| 189 | 230 | ||