Mercurial > sdl-ios-xcode
changeset 1331:1cbaeee565b1
A few fixes to get this building on Linux again
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 06 Feb 2006 08:46:14 +0000 |
parents | 450721ad5436 |
children | de3d552b59b2 |
files | include/SDL_config.h src/audio/alsa/SDL_alsa_audio.c src/stdlib/SDL_getenv.c src/stdlib/SDL_qsort.c src/stdlib/SDL_stdlib.c |
diffstat | 5 files changed, 21 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/include/SDL_config.h Mon Feb 06 08:28:51 2006 +0000 +++ b/include/SDL_config.h Mon Feb 06 08:46:14 2006 +0000 @@ -32,14 +32,26 @@ #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 */ #if !defined(_WIN32) /* Don't use C runtime versions of these on Windows */ @@ -49,7 +61,9 @@ #define HAVE_MALLOC #define HAVE_REALLOC #define HAVE_FREE +#ifndef HAVE_ALLOCA #define HAVE_ALLOCA +#endif /*#define HAVE_QSORT*/ /* Features provided by SDL_string.h */
--- a/src/audio/alsa/SDL_alsa_audio.c Mon Feb 06 08:28:51 2006 +0000 +++ b/src/audio/alsa/SDL_alsa_audio.c Mon Feb 06 08:46:14 2006 +0000 @@ -43,8 +43,10 @@ #ifdef ALSA_DYNAMIC #ifdef USE_DLVSYM +#ifndef __USE_GNU #define __USE_GNU #endif +#endif #include <dlfcn.h> #include "SDL_name.h" #include "SDL_loadso.h"
--- a/src/stdlib/SDL_getenv.c Mon Feb 06 08:28:51 2006 +0000 +++ b/src/stdlib/SDL_getenv.c Mon Feb 06 08:46:14 2006 +0000 @@ -23,6 +23,7 @@ #include "SDL_stdlib.h" #include "SDL_string.h" +#ifndef HAVE_GETENV #if defined(WIN32) && !defined(_WIN32_WCE) @@ -173,6 +174,8 @@ #endif /* WIN32 */ +#endif /* !HAVE_GETENV */ + #ifdef TEST_MAIN #include <stdio.h>