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...
     1 /*
     2     SDL - Simple DirectMedia Layer
     3     Copyright (C) 1997-2006 Sam Lantinga
     4 
     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.
     9 
    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.
    14 
    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
    18 
    19     Sam Lantinga
    20     slouken@libsdl.org
    21 */
    22 
    23 #ifndef _SDL_config_h
    24 #define _SDL_config_h
    25 
    26 /* This is a set of defines to configure the SDL features */
    27 
    28 #define HAVE_STDARG_H
    29 
    30 /* Comment this if you want to build without any libc requirements */
    31 #define HAVE_LIBC
    32 #ifdef HAVE_LIBC
    33 
    34 /* Various C library headers */
    35 #ifndef HAVE_CTYPE_H
    36 #define HAVE_CTYPE_H
    37 #endif
    38 #ifndef HAVE_STDIO_H
    39 #define HAVE_STDIO_H
    40 #endif
    41 #ifndef HAVE_STDLIB_H
    42 #define HAVE_STDLIB_H
    43 #endif
    44 #ifndef HAVE_MALLOC_H
    45 #define HAVE_MALLOC_H
    46 #endif
    47 #ifndef HAVE_STRING_H
    48 #define HAVE_STRING_H
    49 #endif
    50 #if !defined(_WIN32_WCE)
    51 #ifndef HAVE_SIGNAL_H
    52 #define HAVE_SIGNAL_H
    53 #endif
    54 #endif /* !_WIN32_WCE */
    55 
    56 /* Features provided by SDL_stdlib.h */
    57 #define HAVE_MALLOC
    58 #define HAVE_REALLOC
    59 #define HAVE_FREE
    60 #ifndef HAVE_ALLOCA
    61 #define HAVE_ALLOCA
    62 #endif
    63 #if !defined(_WIN32) /* Don't use C runtime versions of these on Windows */
    64 #define HAVE_GETENV
    65 #define HAVE_PUTENV
    66 #endif
    67 /*#define HAVE_QSORT*/
    68 
    69 /* Features provided by SDL_string.h */
    70 #define HAVE_MEMSET
    71 #define HAVE_MEMCPY
    72 #define HAVE_MEMMOVE
    73 #define HAVE_MEMCMP
    74 #define HAVE_STRLEN
    75 #define HAVE_STRCPY
    76 #define HAVE_STRNCPY
    77 #define HAVE_STRCAT
    78 #define HAVE_STRNCAT
    79 /*#define HAVE__STRREV*/
    80 /*#define HAVE__STRUPR*/
    81 /*#define HAVE__STRLWR*/
    82 #define HAVE_STRCHR
    83 #define HAVE_STRRCHR
    84 #define HAVE_STRSTR
    85 /*#define HAVE_ITOA*/
    86 /*#define HAVE__LTOA*/
    87 /*#define HAVE__UITOA*/
    88 /*#define HAVE__ULTOA*/
    89 /*#define HAVE_STRTOL*/
    90 /*#define HAVE__I64TOA*/
    91 /*#define HAVE__UI64TOA*/
    92 /*#define HAVE_STRTOLL*/
    93 #define HAVE_STRCMP
    94 #define HAVE_STRNCMP
    95 /*#define HAVE_STRICMP*/
    96 /*#define HAVE_STRCASECMP*/
    97 #define HAVE_SSCANF
    98 /*#define HAVE_SNPRINTF*/
    99 /*#define HAVE_VSNPRINTF*/
   100 
   101 #endif /* HAVE_LIBC */
   102 
   103 #endif /* _SDL_config_h */