2 SDL - Simple DirectMedia Layer
3 Copyright (C) 1997-2009 Sam Lantinga
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 #ifndef _SDL_config_iphoneos_h
24 #define _SDL_config_iphoneos_h
26 #include "SDL_platform.h"
28 typedef signed char int8_t;
29 typedef unsigned char uint8_t;
30 typedef signed short int16_t;
31 typedef unsigned short uint16_t;
32 typedef signed int int32_t;
33 typedef unsigned int uint32_t;
34 typedef unsigned long uintptr_t;
35 #define SDL_HAS_64BIT_TYPE 1
37 #define HAVE_ALLOCA_H 1
38 #define HAVE_SYS_TYPES_H 1
39 #define HAVE_STDIO_H 1
40 #define STDC_HEADERS 1
41 #define HAVE_STRING_H 1
42 #define HAVE_INTTYPES_H 1
43 #define HAVE_STDINT_H 1
44 #define HAVE_CTYPE_H 1
46 #define HAVE_SIGNAL_H 1
48 /* C library functions */
51 #define HAVE_REALLOC 1
56 #define HAVE_UNSETENV 1
62 #define HAVE_MEMMOVE 1
65 #define HAVE_STRLCPY 1
66 #define HAVE_STRLCAT 1
69 #define HAVE_STRRCHR 1
72 #define HAVE_STRTOUL 1
73 #define HAVE_STRTOLL 1
74 #define HAVE_STRTOULL 1
79 #define HAVE_STRNCMP 1
80 #define HAVE_STRCASECMP 1
81 #define HAVE_STRNCASECMP 1
83 #define HAVE_SNPRINTF 1
84 #define HAVE_VSNPRINTF 1
86 #define HAVE_COPYSIGN 1
97 #define HAVE_SIGACTION 1
99 #define HAVE_NANOSLEEP 1
101 /* enable iPhone version of Core Audio driver */
102 #define SDL_AUDIO_DRIVER_COREAUDIOIPHONE 1
103 /* Enable the dummy audio driver (src/audio/dummy/\*.c) */
104 #define SDL_AUDIO_DRIVER_DUMMY 1
106 /* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */
107 #define SDL_CDROM_DISABLED 1
109 /* Enable the stub haptic driver (src/haptic/dummy/\*.c) */
110 #define SDL_HAPTIC_DISABLED 1
112 /* Enable Unix style SO loading */
113 /* Technically this works, but it violates the iPhone developer agreement */
114 /* #define SDL_LOADSO_DLOPEN 1 */
116 /* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
117 #define SDL_LOADSO_DISABLED 1
119 /* Enable various threading systems */
120 #define SDL_THREAD_PTHREAD 1
121 #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1
123 /* Enable various timer systems */
124 #define SDL_TIMER_UNIX 1
126 /* Supported video drivers */
127 #define SDL_VIDEO_DRIVER_UIKIT 1
128 #define SDL_VIDEO_DRIVER_DUMMY 1
130 /* enable OpenGL ES */
131 #define SDL_VIDEO_OPENGL_ES 1
132 #define SDL_VIDEO_RENDER_OGL_ES 1
134 /* enable iPhone keyboard support */
135 #define SDL_IPHONE_KEYBOARD 1
137 /* Enable emulation of multiple mice through multi-touch */
138 #define SDL_IPHONE_MULTIPLE_MICE 1
140 /* Set max recognized G-force from acceleromter
141 See src/joystick/uikit/SDLUIAccelerationDelegate.m for notes on why this is needed
143 #define SDL_IPHONE_MAX_GFORCE 5.0
145 #endif /* _SDL_config_iphoneos_h */