include/SDL_config.h
changeset 1354 22f39393668a
parent 1353 7ba544e2888d
child 1358 c71e05b4dc2e
     1.1 --- a/include/SDL_config.h	Thu Feb 09 09:07:13 2006 +0000
     1.2 +++ b/include/SDL_config.h	Thu Feb 09 09:38:05 2006 +0000
     1.3 @@ -1,3 +1,4 @@
     1.4 +/* include/SDL_config.h.  Generated by configure.  */
     1.5  /*
     1.6      SDL - Simple DirectMedia Layer
     1.7      Copyright (C) 1997-2006 Sam Lantinga
     1.8 @@ -23,17 +24,111 @@
     1.9  #ifndef _SDL_config_h
    1.10  #define _SDL_config_h
    1.11  
    1.12 -/* This is the minimal configuration that can be used to build SDL */
    1.13 +/* This is a set of defines to configure the SDL features */
    1.14 +
    1.15 +/* C language features */
    1.16 +/* #undef const */
    1.17 +/* #undef inline */
    1.18 +/* #undef volatile */
    1.19 +
    1.20 +/* C datatypes */
    1.21 +/* #undef size_t */
    1.22 +/* #undef int8_t */
    1.23 +/* #undef uint8_t */
    1.24 +/* #undef int16_t */
    1.25 +/* #undef uint16_t */
    1.26 +/* #undef int32_t */
    1.27 +/* #undef uint32_t */
    1.28 +#define SDL_HAS_64BIT_TYPE 1
    1.29 +/* #undef int64_t */
    1.30 +/* #undef uint64_t */
    1.31 +/* #undef uintptr_t */
    1.32  
    1.33 -#include <stdarg.h>
    1.34 +/* Endianness */
    1.35 +#define SDL_BYTEORDER 1234
    1.36 +
    1.37 +/* Comment this if you want to build without any C library requirements */
    1.38 +#define HAVE_LIBC 1
    1.39 +#ifdef HAVE_LIBC
    1.40 +
    1.41 +/* Useful headers */
    1.42 +#define HAVE_SYS_TYPES_H 1
    1.43 +#define HAVE_STDIO_H 1
    1.44 +#define STDC_HEADERS 1
    1.45 +#define HAVE_STDLIB_H 1
    1.46 +#define HAVE_STDARG_H 1
    1.47 +#define HAVE_MALLOC_H 1
    1.48 +#define HAVE_MEMORY_H 1
    1.49 +#define HAVE_STRING_H 1
    1.50 +#define HAVE_STRINGS_H 1
    1.51 +#define HAVE_INTTYPES_H 1
    1.52 +#define HAVE_STDINT_H 1
    1.53 +#define HAVE_CTYPE_H 1
    1.54 +#define HAVE_SIGNAL_H 1
    1.55  
    1.56 -typedef signed char int8_t;
    1.57 -typedef unsigned char uint8_t;
    1.58 -typedef signed short int16_t;
    1.59 -typedef unsigned short uint16_t;
    1.60 -typedef signed int int32_t;
    1.61 -typedef unsigned int uint32_t;
    1.62 -typedef unsigned int size_t;
    1.63 -typedef unsigned long uintptr_t;
    1.64 +/* C library functions */
    1.65 +#define HAVE_MALLOC 1
    1.66 +#define HAVE_CALLOC 1
    1.67 +#define HAVE_REALLOC 1
    1.68 +#define HAVE_FREE 1
    1.69 +#define HAVE_ALLOCA 1
    1.70 +#ifndef _WIN32 /* Don't use C runtime versions of these on Windows */
    1.71 +#define HAVE_GETENV 1
    1.72 +#define HAVE_PUTENV 1
    1.73 +#define HAVE_UNSETENV 1
    1.74 +#endif
    1.75 +#define HAVE_QSORT 1
    1.76 +#define HAVE_ABS 1
    1.77 +#define HAVE_BCOPY 1
    1.78 +#define HAVE_MEMSET 1
    1.79 +#define HAVE_MEMCPY 1
    1.80 +#define HAVE_MEMMOVE 1
    1.81 +#define HAVE_MEMCMP 1
    1.82 +#define HAVE_STRLEN 1
    1.83 +#define HAVE_STRCPY 1
    1.84 +#define HAVE_STRNCPY 1
    1.85 +#define HAVE_STRCAT 1
    1.86 +#define HAVE_STRNCAT 1
    1.87 +#define HAVE_STRDUP 1
    1.88 +/* #undef HAVE__STRREV */
    1.89 +/* #undef HAVE__STRUPR */
    1.90 +/* #undef HAVE__STRLWR */
    1.91 +/* #undef HAVE_INDEX */
    1.92 +/* #undef HAVE_RINDEX */
    1.93 +#define HAVE_STRCHR 1
    1.94 +#define HAVE_STRRCHR 1
    1.95 +#define HAVE_STRSTR 1
    1.96 +/* #undef HAVE_ITOA */
    1.97 +/* #undef HAVE__LTOA */
    1.98 +/* #undef HAVE__UITOA */
    1.99 +/* #undef HAVE__ULTOA */
   1.100 +#define HAVE_STRTOL 1
   1.101 +/* #undef HAVE__I64TOA */
   1.102 +/* #undef HAVE__UI64TOA */
   1.103 +#define HAVE_STRTOLL 1
   1.104 +#define HAVE_STRTOD 1
   1.105 +#define HAVE_ATOI 1
   1.106 +#define HAVE_ATOF 1
   1.107 +#define HAVE_STRCMP 1
   1.108 +#define HAVE_STRNCMP 1
   1.109 +/* #undef HAVE_STRICMP */
   1.110 +#define HAVE_STRCASECMP 1
   1.111 +#define HAVE_SSCANF 1
   1.112 +#define HAVE_SNPRINTF 1
   1.113 +/* #undef HAVE_VSNPRINTF */
   1.114 +
   1.115 +#endif /* HAVE_LIBC */
   1.116 +
   1.117 +
   1.118 +/* Allow disabling of core subsystems */
   1.119 +/* #undef DISABLE_AUDIO */
   1.120 +/* #undef DISABLE_VIDEO */
   1.121 +/* #undef DISABLE_EVENTS */
   1.122 +/* #undef DISABLE_JOYSTICK */
   1.123 +/* #undef DISABLE_CDROM */
   1.124 +/* #undef DISABLE_THREADS */
   1.125 +/* #undef DISABLE_TIMERS */
   1.126 +/* #undef DISABLE_FILE */
   1.127 +/* #undef DISABLE_CPUINFO */
   1.128  
   1.129  #endif /* _SDL_config_h */