include/SDL_config.h
author Sam Lantinga <slouken@libsdl.org>
Tue, 07 Feb 2006 06:59:48 +0000
changeset 1336 3692456e7b0f
parent 1331 1cbaeee565b1
child 1341 d02b552e5304
permissions -rw-r--r--
Use SDL_ prefixed versions of C library functions.
FIXME:
Change #include <stdlib.h> to #include "SDL_stdlib.h"
Change #include <string.h> to #include "SDL_string.h"
Make sure nothing else broke because of this...
slouken@1330
     1
/*
slouken@1330
     2
    SDL - Simple DirectMedia Layer
slouken@1330
     3
    Copyright (C) 1997-2006 Sam Lantinga
slouken@1330
     4
slouken@1330
     5
    This library is free software; you can redistribute it and/or
slouken@1330
     6
    modify it under the terms of the GNU Lesser General Public
slouken@1330
     7
    License as published by the Free Software Foundation; either
slouken@1330
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@1330
     9
slouken@1330
    10
    This library is distributed in the hope that it will be useful,
slouken@1330
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@1330
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1330
    13
    Lesser General Public License for more details.
slouken@1330
    14
slouken@1330
    15
    You should have received a copy of the GNU Lesser General Public
slouken@1330
    16
    License along with this library; if not, write to the Free Software
slouken@1330
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@1330
    18
slouken@1330
    19
    Sam Lantinga
slouken@1330
    20
    slouken@libsdl.org
slouken@1330
    21
*/
slouken@1330
    22
slouken@1330
    23
#ifndef _SDL_config_h
slouken@1330
    24
#define _SDL_config_h
slouken@1330
    25
slouken@1330
    26
/* This is a set of defines to configure the SDL features */
slouken@1330
    27
slouken@1330
    28
#define HAVE_STDARG_H
slouken@1330
    29
slouken@1330
    30
/* Comment this if you want to build without any libc requirements */
slouken@1330
    31
#define HAVE_LIBC
slouken@1330
    32
#ifdef HAVE_LIBC
slouken@1330
    33
slouken@1330
    34
/* Various C library headers */
slouken@1331
    35
#ifndef HAVE_CTYPE_H
slouken@1330
    36
#define HAVE_CTYPE_H
slouken@1331
    37
#endif
slouken@1331
    38
#ifndef HAVE_STDIO_H
slouken@1330
    39
#define HAVE_STDIO_H
slouken@1331
    40
#endif
slouken@1331
    41
#ifndef HAVE_STDLIB_H
slouken@1330
    42
#define HAVE_STDLIB_H
slouken@1331
    43
#endif
slouken@1331
    44
#ifndef HAVE_MALLOC_H
slouken@1330
    45
#define HAVE_MALLOC_H
slouken@1331
    46
#endif
slouken@1331
    47
#ifndef HAVE_STRING_H
slouken@1330
    48
#define HAVE_STRING_H
slouken@1331
    49
#endif
slouken@1330
    50
#if !defined(_WIN32_WCE)
slouken@1331
    51
#ifndef HAVE_SIGNAL_H
slouken@1330
    52
#define HAVE_SIGNAL_H
slouken@1330
    53
#endif
slouken@1331
    54
#endif /* !_WIN32_WCE */
slouken@1330
    55
slouken@1330
    56
/* Features provided by SDL_stdlib.h */
slouken@1330
    57
#define HAVE_MALLOC
slouken@1330
    58
#define HAVE_REALLOC
slouken@1330
    59
#define HAVE_FREE
slouken@1331
    60
#ifndef HAVE_ALLOCA
slouken@1330
    61
#define HAVE_ALLOCA
slouken@1331
    62
#endif
slouken@1336
    63
#if !defined(_WIN32) /* Don't use C runtime versions of these on Windows */
slouken@1336
    64
#define HAVE_GETENV
slouken@1336
    65
#define HAVE_PUTENV
slouken@1336
    66
#endif
slouken@1330
    67
/*#define HAVE_QSORT*/
slouken@1330
    68
slouken@1330
    69
/* Features provided by SDL_string.h */
slouken@1330
    70
#define HAVE_MEMSET
slouken@1330
    71
#define HAVE_MEMCPY
slouken@1330
    72
#define HAVE_MEMMOVE
slouken@1330
    73
#define HAVE_MEMCMP
slouken@1330
    74
#define HAVE_STRLEN
slouken@1330
    75
#define HAVE_STRCPY
slouken@1330
    76
#define HAVE_STRNCPY
slouken@1336
    77
#define HAVE_STRCAT
slouken@1336
    78
#define HAVE_STRNCAT
slouken@1330
    79
/*#define HAVE__STRREV*/
slouken@1330
    80
/*#define HAVE__STRUPR*/
slouken@1330
    81
/*#define HAVE__STRLWR*/
slouken@1330
    82
#define HAVE_STRCHR
slouken@1330
    83
#define HAVE_STRRCHR
slouken@1330
    84
#define HAVE_STRSTR
slouken@1330
    85
/*#define HAVE_ITOA*/
slouken@1330
    86
/*#define HAVE__LTOA*/
slouken@1330
    87
/*#define HAVE__UITOA*/
slouken@1330
    88
/*#define HAVE__ULTOA*/
slouken@1330
    89
/*#define HAVE_STRTOL*/
slouken@1330
    90
/*#define HAVE__I64TOA*/
slouken@1330
    91
/*#define HAVE__UI64TOA*/
slouken@1330
    92
/*#define HAVE_STRTOLL*/
slouken@1330
    93
#define HAVE_STRCMP
slouken@1330
    94
#define HAVE_STRNCMP
slouken@1330
    95
/*#define HAVE_STRICMP*/
slouken@1330
    96
/*#define HAVE_STRCASECMP*/
slouken@1330
    97
#define HAVE_SSCANF
slouken@1330
    98
/*#define HAVE_SNPRINTF*/
slouken@1336
    99
/*#define HAVE_VSNPRINTF*/
slouken@1330
   100
slouken@1330
   101
#endif /* HAVE_LIBC */
slouken@1330
   102
slouken@1330
   103
#endif /* _SDL_config_h */