include/SDL_config_iphoneos.h
author Holmes Futrell <hfutrell@umail.ucsb.edu>
Fri, 15 Aug 2008 18:26:48 +0000
branchgsoc2008_iphone
changeset 2436 d7b41796713e
parent 2435 775e061e9440
permissions -rw-r--r--
Removed useless lines, added comments.
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
hfutrell@2332
    28
typedef signed char int8_t;
hfutrell@2332
    29
typedef unsigned char uint8_t;
hfutrell@2332
    30
typedef signed short int16_t;
hfutrell@2332
    31
typedef unsigned short uint16_t;
hfutrell@2332
    32
typedef signed int int32_t;
hfutrell@2332
    33
typedef unsigned int uint32_t;
hfutrell@2332
    34
typedef unsigned long uintptr_t;
hfutrell@2332
    35
hfutrell@2436
    36
/* enable iPhone keyboard support */
hfutrell@2408
    37
#define SDL_IPHONE_KEYBOARD 1
hfutrell@2408
    38
hfutrell@2368
    39
/* enable OpenGL ES */
hfutrell@2332
    40
#define SDL_VIDEO_OPENGL_ES	1
hfutrell@2332
    41
#define SDL_VIDEO_RENDER_OGL_ES	1
hfutrell@2332
    42
hfutrell@2436
    43
#define SDL_HAS_64BIT_TYPE	1
hfutrell@2332
    44
hfutrell@2332
    45
/* Enable various timer systems */
hfutrell@2332
    46
#define SDL_TIMER_UNIX	1
hfutrell@2332
    47
hfutrell@2436
    48
/* enable iPhone version of Core Audio driver */
hfutrell@2436
    49
#define SDL_AUDIO_DRIVER_COREAUDIOIPHONE 1
hfutrell@2332
    50
/* Enable the dummy audio driver (src/audio/dummy/\*.c) */
hfutrell@2332
    51
#define SDL_AUDIO_DRIVER_DUMMY	1
hfutrell@2332
    52
hfutrell@2368
    53
/* Enable Unix style SO loading */
hfutrell@2368
    54
#define SDL_LOADSO_DLOPEN 1
hfutrell@2368
    55
hfutrell@2332
    56
/* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */
hfutrell@2332
    57
#define SDL_CDROM_DISABLED	1
hfutrell@2332
    58
hfutrell@2436
    59
/* 
hfutrell@2436
    60
	Set max recognized G-force from acceleromter
hfutrell@2436
    61
	See src/joystick/uikit/SDLUIAccelerationDelegate.m for notes on why this is needed
hfutrell@2428
    62
 */
hfutrell@2428
    63
#define SDL_IPHONE_MAX_GFORCE 5.0
hfutrell@2436
    64
/* Enable emulation of multiple mice through multi-touch */
hfutrell@2428
    65
#define SDL_IPHONE_MULTIPLE_MICE 1
hfutrell@2332
    66
/* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
hfutrell@2332
    67
#define SDL_LOADSO_DISABLED	1
hfutrell@2332
    68
hfutrell@2436
    69
/* Supported video drivers */
hfutrell@2332
    70
#define SDL_VIDEO_DRIVER_UIKIT	1
hfutrell@2332
    71
#define SDL_VIDEO_DRIVER_DUMMY	1
hfutrell@2332
    72
hfutrell@2332
    73
/* Enable various threading systems */
hfutrell@2332
    74
#define SDL_THREAD_PTHREAD	1
hfutrell@2332
    75
#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX	1
hfutrell@2332
    76
hfutrell@2332
    77
#define HAVE_ALLOCA_H		1
hfutrell@2332
    78
#define HAVE_SYS_TYPES_H	1
hfutrell@2332
    79
#define HAVE_STDIO_H	1
hfutrell@2332
    80
#define STDC_HEADERS	1
hfutrell@2332
    81
#define HAVE_STRING_H	1
hfutrell@2332
    82
#define HAVE_INTTYPES_H	1
hfutrell@2332
    83
#define HAVE_STDINT_H	1
hfutrell@2332
    84
#define HAVE_CTYPE_H	1
hfutrell@2332
    85
#define HAVE_MATH_H	1
hfutrell@2332
    86
#define HAVE_SIGNAL_H	1
hfutrell@2332
    87
hfutrell@2332
    88
/* C library functions */
hfutrell@2332
    89
#define HAVE_MALLOC	1
hfutrell@2332
    90
#define HAVE_CALLOC	1
hfutrell@2332
    91
#define HAVE_REALLOC	1
hfutrell@2332
    92
#define HAVE_FREE	1
hfutrell@2332
    93
#define HAVE_ALLOCA	1
hfutrell@2332
    94
#define HAVE_GETENV	1
hfutrell@2332
    95
#define HAVE_PUTENV	1
hfutrell@2332
    96
#define HAVE_UNSETENV	1
hfutrell@2332
    97
#define HAVE_QSORT	1
hfutrell@2332
    98
#define HAVE_ABS	1
hfutrell@2332
    99
#define HAVE_BCOPY	1
hfutrell@2332
   100
#define HAVE_MEMSET	1
hfutrell@2332
   101
#define HAVE_MEMCPY	1
hfutrell@2332
   102
#define HAVE_MEMMOVE	1
hfutrell@2332
   103
#define HAVE_MEMCMP	1
hfutrell@2332
   104
#define HAVE_STRLEN	1
hfutrell@2332
   105
#define HAVE_STRLCPY	1
hfutrell@2332
   106
#define HAVE_STRLCAT	1
hfutrell@2332
   107
#define HAVE_STRDUP	1
hfutrell@2332
   108
#define HAVE_STRCHR	1
hfutrell@2332
   109
#define HAVE_STRRCHR	1
hfutrell@2332
   110
#define HAVE_STRSTR	1
hfutrell@2332
   111
#define HAVE_STRTOL	1
hfutrell@2332
   112
#define HAVE_STRTOUL	1
hfutrell@2332
   113
#define HAVE_STRTOLL	1
hfutrell@2332
   114
#define HAVE_STRTOULL	1
hfutrell@2332
   115
#define HAVE_STRTOD	1
hfutrell@2332
   116
#define HAVE_ATOI	1
hfutrell@2332
   117
#define HAVE_ATOF	1
hfutrell@2332
   118
#define HAVE_STRCMP	1
hfutrell@2332
   119
#define HAVE_STRNCMP	1
hfutrell@2332
   120
#define HAVE_STRCASECMP	1
hfutrell@2332
   121
#define HAVE_STRNCASECMP 1
hfutrell@2332
   122
#define HAVE_SSCANF	1
hfutrell@2332
   123
#define HAVE_SNPRINTF	1
hfutrell@2332
   124
#define HAVE_VSNPRINTF	1
hfutrell@2332
   125
#define HAVE_SIGACTION	1
hfutrell@2332
   126
#define HAVE_SETJMP	1
hfutrell@2435
   127
#define HAVE_NANOSLEEP	1
hfutrell@2435
   128
hfutrell@2435
   129
#endif /* _SDL_config_iphoneos_h */