Configure dynamically generates SDL_config.h
I'm still wrestling with autoheader, but this should work for now... Fixed lots of build problems with C library support disabled --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401345
This commit is contained in:
parent
dd8d77d906
commit
78516b5663
24 changed files with 513 additions and 117 deletions
|
@ -23,81 +23,8 @@
|
|||
#ifndef _SDL_config_h
|
||||
#define _SDL_config_h
|
||||
|
||||
/* This is a set of defines to configure the SDL features */
|
||||
/* This is the minimal configuration that can be used to build SDL */
|
||||
|
||||
#define HAVE_STDARG_H
|
||||
|
||||
/* Comment this if you want to build without any libc requirements */
|
||||
#define HAVE_LIBC
|
||||
#ifdef HAVE_LIBC
|
||||
|
||||
/* Various C library headers */
|
||||
#ifndef HAVE_CTYPE_H
|
||||
#define HAVE_CTYPE_H
|
||||
#endif
|
||||
#ifndef HAVE_STDIO_H
|
||||
#define HAVE_STDIO_H
|
||||
#endif
|
||||
#ifndef HAVE_STDLIB_H
|
||||
#define HAVE_STDLIB_H
|
||||
#endif
|
||||
#ifndef HAVE_MALLOC_H
|
||||
#define HAVE_MALLOC_H
|
||||
#endif
|
||||
#ifndef HAVE_STRING_H
|
||||
#define HAVE_STRING_H
|
||||
#endif
|
||||
#if !defined(_WIN32_WCE)
|
||||
#ifndef HAVE_SIGNAL_H
|
||||
#define HAVE_SIGNAL_H
|
||||
#endif
|
||||
#endif /* !_WIN32_WCE */
|
||||
|
||||
/* Features provided by SDL_stdlib.h */
|
||||
#define HAVE_MALLOC
|
||||
#define HAVE_REALLOC
|
||||
#define HAVE_FREE
|
||||
#ifndef HAVE_ALLOCA
|
||||
#define HAVE_ALLOCA
|
||||
#endif
|
||||
#if !defined(_WIN32) /* Don't use C runtime versions of these on Windows */
|
||||
#define HAVE_GETENV
|
||||
#define HAVE_PUTENV
|
||||
#endif
|
||||
/*#define HAVE_QSORT*/
|
||||
|
||||
/* Features provided by SDL_string.h */
|
||||
#define HAVE_MEMSET
|
||||
#define HAVE_MEMCPY
|
||||
#define HAVE_MEMMOVE
|
||||
#define HAVE_MEMCMP
|
||||
#define HAVE_STRLEN
|
||||
#define HAVE_STRCPY
|
||||
#define HAVE_STRNCPY
|
||||
#define HAVE_STRCAT
|
||||
#define HAVE_STRNCAT
|
||||
/*#define HAVE__STRREV*/
|
||||
/*#define HAVE__STRUPR*/
|
||||
/*#define HAVE__STRLWR*/
|
||||
#define HAVE_STRCHR
|
||||
#define HAVE_STRRCHR
|
||||
#define HAVE_STRSTR
|
||||
/*#define HAVE_ITOA*/
|
||||
/*#define HAVE__LTOA*/
|
||||
/*#define HAVE__UITOA*/
|
||||
/*#define HAVE__ULTOA*/
|
||||
/*#define HAVE_STRTOL*/
|
||||
/*#define HAVE__I64TOA*/
|
||||
/*#define HAVE__UI64TOA*/
|
||||
/*#define HAVE_STRTOLL*/
|
||||
#define HAVE_STRCMP
|
||||
#define HAVE_STRNCMP
|
||||
/*#define HAVE_STRICMP*/
|
||||
/*#define HAVE_STRCASECMP*/
|
||||
#define HAVE_SSCANF
|
||||
/*#define HAVE_SNPRINTF*/
|
||||
/*#define HAVE_VSNPRINTF*/
|
||||
|
||||
#endif /* HAVE_LIBC */
|
||||
#define HAVE_STDARG_H 1
|
||||
|
||||
#endif /* _SDL_config_h */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue