include/SDL_config_android.h
author Paul Hunkin <paul@bieh.net>
Tue, 27 Jul 2010 15:23:09 +0200
changeset 4720 80f8d672b52e
parent 4719 d59792d2c3ae
child 4722 faa228f7ce5b
permissions -rwxr-xr-x
Oops, I wasn't using pthreads. Fixed so we can have mutexes and stuff
paul@4700
     1
/*
paul@4700
     2
    SDL - Simple DirectMedia Layer
paul@4700
     3
    Copyright (C) 1997-2010 Sam Lantinga
paul@4700
     4
paul@4700
     5
    This library is free software; you can redistribute it and/or
paul@4700
     6
    modify it under the terms of the GNU Lesser General Public
paul@4700
     7
    License as published by the Free Software Foundation; either
paul@4700
     8
    version 2.1 of the License, or (at your option) any later version.
paul@4700
     9
paul@4700
    10
    This library is distributed in the hope that it will be useful,
paul@4700
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
paul@4700
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
paul@4700
    13
    Lesser General Public License for more details.
paul@4700
    14
paul@4700
    15
    You should have received a copy of the GNU Lesser General Public
paul@4700
    16
    License along with this library; if not, write to the Free Software
paul@4700
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
paul@4700
    18
paul@4700
    19
    Sam Lantinga
paul@4700
    20
    slouken@libsdl.org
paul@4700
    21
*/
paul@4700
    22
paul@4700
    23
#ifndef _SDL_config_android_h
paul@4700
    24
#define _SDL_config_android_h
paul@4700
    25
paul@4700
    26
#include "SDL_platform.h"
paul@4700
    27
paul@4700
    28
/**
paul@4700
    29
 *  \file SDL_config_android.h
paul@4700
    30
 *  
paul@4700
    31
 *  This is a configuration that can be used to build SDL for Android
paul@4700
    32
 */
paul@4700
    33
paul@4700
    34
#include <stdarg.h>
paul@4700
    35
paul@4700
    36
/*
paul@4700
    37
typedef signed char int8_t;
paul@4700
    38
typedef unsigned char uint8_t;
paul@4700
    39
typedef signed short int16_t;
paul@4700
    40
typedef unsigned short uint16_t;
paul@4700
    41
typedef signed int int32_t;
paul@4700
    42
typedef unsigned int uint32_t;
paul@4700
    43
*/
paul@4700
    44
paul@4720
    45
paul@4720
    46
#define HAVE_ALLOCA_H		1
paul@4720
    47
#define HAVE_SYS_TYPES_H	1
paul@4720
    48
#define HAVE_STDIO_H	1
paul@4720
    49
#define STDC_HEADERS	1
paul@4720
    50
#define HAVE_STRING_H	1
paul@4720
    51
#define HAVE_INTTYPES_H	1
paul@4720
    52
#define HAVE_STDINT_H	1
paul@4720
    53
#define HAVE_CTYPE_H	1
paul@4720
    54
#define HAVE_MATH_H	1
paul@4720
    55
#define HAVE_SIGNAL_H	1
paul@4720
    56
paul@4720
    57
/* C library functions */
paul@4720
    58
#define HAVE_MALLOC	1
paul@4720
    59
#define HAVE_CALLOC	1
paul@4720
    60
#define HAVE_REALLOC	1
paul@4720
    61
#define HAVE_FREE	1
paul@4720
    62
#define HAVE_ALLOCA	1
paul@4720
    63
#define HAVE_GETENV	1
paul@4720
    64
#define HAVE_SETENV	1
paul@4720
    65
#define HAVE_PUTENV	1
paul@4720
    66
#define HAVE_SETENV	1
paul@4720
    67
#define HAVE_UNSETENV	1
paul@4720
    68
#define HAVE_QSORT	1
paul@4720
    69
#define HAVE_ABS	1
paul@4720
    70
#define HAVE_BCOPY	1
paul@4720
    71
#define HAVE_MEMSET	1
paul@4720
    72
#define HAVE_MEMCPY	1
paul@4720
    73
#define HAVE_MEMMOVE	1
paul@4720
    74
#define HAVE_MEMCMP	1
paul@4720
    75
#define HAVE_STRLEN	1
paul@4720
    76
#define HAVE_STRLCPY	1
paul@4720
    77
#define HAVE_STRLCAT	1
paul@4720
    78
#define HAVE_STRDUP	1
paul@4720
    79
#define HAVE_STRCHR	1
paul@4720
    80
#define HAVE_STRRCHR	1
paul@4720
    81
#define HAVE_STRSTR	1
paul@4720
    82
#define HAVE_STRTOL	1
paul@4720
    83
#define HAVE_STRTOUL	1
paul@4720
    84
#define HAVE_STRTOLL	1
paul@4720
    85
#define HAVE_STRTOULL	1
paul@4720
    86
#define HAVE_STRTOD	1
paul@4720
    87
#define HAVE_ATOI	1
paul@4720
    88
#define HAVE_ATOF	1
paul@4720
    89
#define HAVE_STRCMP	1
paul@4720
    90
#define HAVE_STRNCMP	1
paul@4720
    91
#define HAVE_STRCASECMP	1
paul@4720
    92
#define HAVE_STRNCASECMP 1
paul@4720
    93
#define HAVE_SSCANF	1
paul@4720
    94
#define HAVE_SNPRINTF	1
paul@4720
    95
#define HAVE_VSNPRINTF	1
paul@4720
    96
#define HAVE_CEIL	1
paul@4720
    97
#define HAVE_COPYSIGN	1
paul@4720
    98
#define HAVE_COS	1
paul@4720
    99
#define HAVE_COSF	1
paul@4720
   100
#define HAVE_FABS	1
paul@4720
   101
#define HAVE_FLOOR	1
paul@4720
   102
#define HAVE_LOG	1
paul@4720
   103
#define HAVE_POW	1
paul@4720
   104
#define HAVE_SCALBN	1
paul@4720
   105
#define HAVE_SIN	1
paul@4720
   106
#define HAVE_SINF	1
paul@4720
   107
#define HAVE_SQRT	1
paul@4720
   108
#define HAVE_SIGACTION	1
paul@4720
   109
#define HAVE_SETJMP	1
paul@4720
   110
#define HAVE_NANOSLEEP	1
paul@4720
   111
#define HAVE_SYSCONF	1
paul@4720
   112
paul@4700
   113
#define SIZEOF_VOIDP 4
paul@4700
   114
paul@4700
   115
typedef unsigned int size_t;
paul@4700
   116
//typedef unsigned long uintptr_t;
paul@4700
   117
paul@4719
   118
#define SDL_AUDIO_DRIVER_ANDROID	1
paul@4700
   119
paul@4700
   120
#define SDL_CDROM_DISABLED 1
paul@4700
   121
paul@4700
   122
#define SDL_HAPTIC_DISABLED 1
paul@4700
   123
paul@4700
   124
#define SDL_JOYSTICK_DISABLED 1
paul@4700
   125
paul@4700
   126
#define SDL_LOADSO_DISABLED 1
paul@4700
   127
paul@4720
   128
/* Enable various threading systems */
paul@4720
   129
#define SDL_THREAD_PTHREAD	1
paul@4720
   130
#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX	1
paul@4700
   131
paul@4720
   132
/* Enable various timer systems */
paul@4720
   133
#define SDL_TIMER_UNIX	1
paul@4700
   134
paul@4701
   135
#define SDL_VIDEO_DRIVER_ANDROID 1
paul@4700
   136
paul@4700
   137
#define HAVE_STDIO_H 1
paul@4700
   138
#define HAVE_SYS_TYPES_H 1
paul@4700
   139
paul@4701
   140
#define HAVE_M_PI 1
paul@4701
   141
paul@4701
   142
#define SDL_VIDEO_RENDER_OGL_ES 1
paul@4701
   143
paul@4700
   144
#endif /* _SDL_config_minimal_h */
paul@4700
   145