include/SDL_config_iphoneos.h
author Holmes Futrell <hfutrell@umail.ucsb.edu>
Fri, 15 Aug 2008 18:22:12 +0000
branchgsoc2008_iphone
changeset 2435 775e061e9440
parent 2428 826210ef2c10
child 2436 d7b41796713e
permissions -rw-r--r--
changed #ifndef statment to _SDL_config_iphoneos_h instead of _SDL_config_minimal_h.
hfutrell@2332
     1
/*
hfutrell@2332
     2
    SDL - Simple DirectMedia Layer
hfutrell@2332
     3
    Copyright (C) 1997-2006 Sam Lantinga
hfutrell@2332
     4
hfutrell@2332
     5
    This library is free software; you can redistribute it and/or
hfutrell@2332
     6
    modify it under the terms of the GNU Lesser General Public
hfutrell@2332
     7
    License as published by the Free Software Foundation; either
hfutrell@2332
     8
    version 2.1 of the License, or (at your option) any later version.
hfutrell@2332
     9
hfutrell@2332
    10
    This library is distributed in the hope that it will be useful,
hfutrell@2332
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
hfutrell@2332
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
hfutrell@2332
    13
    Lesser General Public License for more details.
hfutrell@2332
    14
hfutrell@2332
    15
    You should have received a copy of the GNU Lesser General Public
hfutrell@2332
    16
    License along with this library; if not, write to the Free Software
hfutrell@2332
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
hfutrell@2332
    18
hfutrell@2332
    19
    Sam Lantinga
hfutrell@2332
    20
    slouken@libsdl.org
hfutrell@2332
    21
*/
hfutrell@2332
    22
hfutrell@2435
    23
#ifndef _SDL_config_iphoneos_h
hfutrell@2435
    24
#define _SDL_config_iphoneos_h
hfutrell@2332
    25
hfutrell@2332
    26
#include "SDL_platform.h"
hfutrell@2332
    27
#include "stdio.h" // contains def for size_t
hfutrell@2332
    28
hfutrell@2332
    29
/* This is the minimal configuration that can be used to build SDL */
hfutrell@2332
    30
hfutrell@2332
    31
#include <stdarg.h>
hfutrell@2332
    32
hfutrell@2332
    33
typedef signed char int8_t;
hfutrell@2332
    34
typedef unsigned char uint8_t;
hfutrell@2332
    35
typedef signed short int16_t;
hfutrell@2332
    36
typedef unsigned short uint16_t;
hfutrell@2332
    37
typedef signed int int32_t;
hfutrell@2332
    38
typedef unsigned int uint32_t;
hfutrell@2332
    39
hfutrell@2332
    40
#ifndef size_t
hfutrell@2435
    41
typedef unsigned int size_t;
hfutrell@2332
    42
#endif
hfutrell@2332
    43
hfutrell@2332
    44
typedef unsigned long uintptr_t;
hfutrell@2332
    45
hfutrell@2408
    46
/* enable keyboard support */
hfutrell@2408
    47
#define SDL_IPHONE_KEYBOARD 1
hfutrell@2408
    48
hfutrell@2368
    49
/* enable OpenGL ES */
hfutrell@2332
    50
#define SDL_VIDEO_OPENGL_ES	1
hfutrell@2368
    51
hfutrell@2332
    52
#define SDL_VIDEO_RENDER_OGL_ES	1
hfutrell@2332
    53
hfutrell@2332
    54
#define SDL_HAS_64BIT_TYPE	0
hfutrell@2332
    55
hfutrell@2332
    56
/* Enable various timer systems */
hfutrell@2332
    57
#define SDL_TIMER_UNIX	1
hfutrell@2332
    58
hfutrell@2332
    59
/* Enable the dummy audio driver (src/audio/dummy/\*.c) */
hfutrell@2332
    60
#define SDL_AUDIO_DRIVER_COREAUDIOIPHONE 1
hfutrell@2332
    61
#define SDL_AUDIO_DRIVER_DUMMY	1
hfutrell@2332
    62
hfutrell@2368
    63
/* Enable Unix style SO loading */
hfutrell@2368
    64
#define SDL_LOADSO_DLOPEN 1
hfutrell@2368
    65
hfutrell@2332
    66
/* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */
hfutrell@2332
    67
#define SDL_CDROM_DISABLED	1
hfutrell@2332
    68
hfutrell@2428
    69
/* Set max recognized G-force from acceleromter
hfutrell@2428
    70
   (necessary for mapping floating point accelerometer
hfutrell@2428
    71
    data to Sint16 joystick data)
hfutrell@2428
    72
 */
hfutrell@2428
    73
#define SDL_IPHONE_MAX_GFORCE 5.0
hfutrell@2428
    74
/*
hfutrell@2428
    75
	Enable (or disable) emulation of multiple mice through multi-touch
hfutrell@2428
    76
*/
hfutrell@2428
    77
#define SDL_IPHONE_MULTIPLE_MICE 1
hfutrell@2332
    78
/* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
hfutrell@2332
    79
#define SDL_LOADSO_DISABLED	1
hfutrell@2332
    80
hfutrell@2332
    81
/* Enable the stub thread support (src/thread/generic/\*.c) */
hfutrell@2332
    82
//#define SDL_THREADS_DISABLED	0
hfutrell@2332
    83
hfutrell@2332
    84
/* Enable the stub timer support (src/timer/dummy/\*.c) */
hfutrell@2332
    85
//#define SDL_TIMERS_DISABLED	0
hfutrell@2332
    86
hfutrell@2332
    87
/* supported video drivers */
hfutrell@2332
    88
#define SDL_VIDEO_DRIVER_UIKIT	1
hfutrell@2332
    89
#define SDL_VIDEO_DRIVER_DUMMY	1
hfutrell@2332
    90
hfutrell@2332
    91
/* Enable various threading systems */
hfutrell@2332
    92
#define SDL_THREAD_PTHREAD	1
hfutrell@2332
    93
#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX	1
hfutrell@2332
    94
hfutrell@2332
    95
#define HAVE_ALLOCA_H		1
hfutrell@2332
    96
#define HAVE_SYS_TYPES_H	1
hfutrell@2332
    97
#define HAVE_STDIO_H	1
hfutrell@2332
    98
#define STDC_HEADERS	1
hfutrell@2332
    99
#define HAVE_STRING_H	1
hfutrell@2332
   100
#define HAVE_INTTYPES_H	1
hfutrell@2332
   101
#define HAVE_STDINT_H	1
hfutrell@2332
   102
#define HAVE_CTYPE_H	1
hfutrell@2332
   103
#define HAVE_MATH_H	1
hfutrell@2332
   104
#define HAVE_SIGNAL_H	1
hfutrell@2332
   105
hfutrell@2332
   106
/* C library functions */
hfutrell@2332
   107
#define HAVE_MALLOC	1
hfutrell@2332
   108
#define HAVE_CALLOC	1
hfutrell@2332
   109
#define HAVE_REALLOC	1
hfutrell@2332
   110
#define HAVE_FREE	1
hfutrell@2332
   111
#define HAVE_ALLOCA	1
hfutrell@2332
   112
#define HAVE_GETENV	1
hfutrell@2332
   113
#define HAVE_PUTENV	1
hfutrell@2332
   114
#define HAVE_UNSETENV	1
hfutrell@2332
   115
#define HAVE_QSORT	1
hfutrell@2332
   116
#define HAVE_ABS	1
hfutrell@2332
   117
#define HAVE_BCOPY	1
hfutrell@2332
   118
#define HAVE_MEMSET	1
hfutrell@2332
   119
#define HAVE_MEMCPY	1
hfutrell@2332
   120
#define HAVE_MEMMOVE	1
hfutrell@2332
   121
#define HAVE_MEMCMP	1
hfutrell@2332
   122
#define HAVE_STRLEN	1
hfutrell@2332
   123
#define HAVE_STRLCPY	1
hfutrell@2332
   124
#define HAVE_STRLCAT	1
hfutrell@2332
   125
#define HAVE_STRDUP	1
hfutrell@2332
   126
#define HAVE_STRCHR	1
hfutrell@2332
   127
#define HAVE_STRRCHR	1
hfutrell@2332
   128
#define HAVE_STRSTR	1
hfutrell@2332
   129
#define HAVE_STRTOL	1
hfutrell@2332
   130
#define HAVE_STRTOUL	1
hfutrell@2332
   131
#define HAVE_STRTOLL	1
hfutrell@2332
   132
#define HAVE_STRTOULL	1
hfutrell@2332
   133
#define HAVE_STRTOD	1
hfutrell@2332
   134
#define HAVE_ATOI	1
hfutrell@2332
   135
#define HAVE_ATOF	1
hfutrell@2332
   136
#define HAVE_STRCMP	1
hfutrell@2332
   137
#define HAVE_STRNCMP	1
hfutrell@2332
   138
#define HAVE_STRCASECMP	1
hfutrell@2332
   139
#define HAVE_STRNCASECMP 1
hfutrell@2332
   140
#define HAVE_SSCANF	1
hfutrell@2332
   141
#define HAVE_SNPRINTF	1
hfutrell@2332
   142
#define HAVE_VSNPRINTF	1
hfutrell@2332
   143
#define HAVE_SIGACTION	1
hfutrell@2332
   144
#define HAVE_SETJMP	1
hfutrell@2435
   145
#define HAVE_NANOSLEEP	1
hfutrell@2435
   146
hfutrell@2435
   147
#endif /* _SDL_config_iphoneos_h */