include/SDL_config.h
author Sam Lantinga <slouken@libsdl.org>
Mon, 06 Feb 2006 08:46:14 +0000
changeset 1331 1cbaeee565b1
parent 1330 450721ad5436
child 1336 3692456e7b0f
permissions -rw-r--r--
A few fixes to get this building on Linux again
     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 #if !defined(_WIN32) /* Don't use C runtime versions of these on Windows */
    58 #define HAVE_GETENV
    59 #define HAVE_PUTENV
    60 #endif
    61 #define HAVE_MALLOC
    62 #define HAVE_REALLOC
    63 #define HAVE_FREE
    64 #ifndef HAVE_ALLOCA
    65 #define HAVE_ALLOCA
    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__STRREV*/
    78 /*#define HAVE__STRUPR*/
    79 /*#define HAVE__STRLWR*/
    80 #define HAVE_STRCHR
    81 #define HAVE_STRRCHR
    82 #define HAVE_STRSTR
    83 /*#define HAVE_ITOA*/
    84 /*#define HAVE__LTOA*/
    85 /*#define HAVE__UITOA*/
    86 /*#define HAVE__ULTOA*/
    87 /*#define HAVE_STRTOL*/
    88 /*#define HAVE__I64TOA*/
    89 /*#define HAVE__UI64TOA*/
    90 /*#define HAVE_STRTOLL*/
    91 #define HAVE_STRCMP
    92 #define HAVE_STRNCMP
    93 /*#define HAVE_STRICMP*/
    94 /*#define HAVE_STRCASECMP*/
    95 #define HAVE_SSCANF
    96 /*#define HAVE_SNPRINTF*/
    97 #define HAVE_VSNPRINTF
    98 
    99 #endif /* HAVE_LIBC */
   100 
   101 #endif /* _SDL_config_h */