include/SDL_config.h
author Sam Lantinga <slouken@libsdl.org>
Mon, 06 Feb 2006 08:28:51 +0000
changeset 1330 450721ad5436
child 1331 1cbaeee565b1
permissions -rw-r--r--
It's now possible to build SDL without any C runtime at all on Windows,
using Visual C++ 2005
     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 #define HAVE_CTYPE_H
    36 #define HAVE_STDIO_H
    37 #define HAVE_STDLIB_H
    38 #define HAVE_MALLOC_H
    39 #define HAVE_STRING_H
    40 #if !defined(_WIN32_WCE)
    41 #define HAVE_SIGNAL_H
    42 #endif
    43 
    44 /* Features provided by SDL_stdlib.h */
    45 #if !defined(_WIN32) /* Don't use C runtime versions of these on Windows */
    46 #define HAVE_GETENV
    47 #define HAVE_PUTENV
    48 #endif
    49 #define HAVE_MALLOC
    50 #define HAVE_REALLOC
    51 #define HAVE_FREE
    52 #define HAVE_ALLOCA
    53 /*#define HAVE_QSORT*/
    54 
    55 /* Features provided by SDL_string.h */
    56 #define HAVE_MEMSET
    57 #define HAVE_MEMCPY
    58 #define HAVE_MEMMOVE
    59 #define HAVE_MEMCMP
    60 #define HAVE_STRLEN
    61 #define HAVE_STRCPY
    62 #define HAVE_STRNCPY
    63 /*#define HAVE__STRREV*/
    64 /*#define HAVE__STRUPR*/
    65 /*#define HAVE__STRLWR*/
    66 #define HAVE_STRCHR
    67 #define HAVE_STRRCHR
    68 #define HAVE_STRSTR
    69 /*#define HAVE_ITOA*/
    70 /*#define HAVE__LTOA*/
    71 /*#define HAVE__UITOA*/
    72 /*#define HAVE__ULTOA*/
    73 /*#define HAVE_STRTOL*/
    74 /*#define HAVE__I64TOA*/
    75 /*#define HAVE__UI64TOA*/
    76 /*#define HAVE_STRTOLL*/
    77 #define HAVE_STRCMP
    78 #define HAVE_STRNCMP
    79 /*#define HAVE_STRICMP*/
    80 /*#define HAVE_STRCASECMP*/
    81 #define HAVE_SSCANF
    82 /*#define HAVE_SNPRINTF*/
    83 #define HAVE_VSNPRINTF
    84 
    85 #endif /* HAVE_LIBC */
    86 
    87 #endif /* _SDL_config_h */