A few fixes to get this building on Linux again

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401335
This commit is contained in:
Sam Lantinga 2006-02-06 08:46:14 +00:00
parent 6c3f928cd8
commit ed90299388
5 changed files with 21 additions and 2 deletions

View file

@ -32,14 +32,26 @@
#ifdef HAVE_LIBC #ifdef HAVE_LIBC
/* Various C library headers */ /* Various C library headers */
#ifndef HAVE_CTYPE_H
#define HAVE_CTYPE_H #define HAVE_CTYPE_H
#endif
#ifndef HAVE_STDIO_H
#define HAVE_STDIO_H #define HAVE_STDIO_H
#endif
#ifndef HAVE_STDLIB_H
#define HAVE_STDLIB_H #define HAVE_STDLIB_H
#endif
#ifndef HAVE_MALLOC_H
#define HAVE_MALLOC_H #define HAVE_MALLOC_H
#endif
#ifndef HAVE_STRING_H
#define HAVE_STRING_H #define HAVE_STRING_H
#endif
#if !defined(_WIN32_WCE) #if !defined(_WIN32_WCE)
#ifndef HAVE_SIGNAL_H
#define HAVE_SIGNAL_H #define HAVE_SIGNAL_H
#endif #endif
#endif /* !_WIN32_WCE */
/* Features provided by SDL_stdlib.h */ /* Features provided by SDL_stdlib.h */
#if !defined(_WIN32) /* Don't use C runtime versions of these on Windows */ #if !defined(_WIN32) /* Don't use C runtime versions of these on Windows */
@ -49,7 +61,9 @@
#define HAVE_MALLOC #define HAVE_MALLOC
#define HAVE_REALLOC #define HAVE_REALLOC
#define HAVE_FREE #define HAVE_FREE
#ifndef HAVE_ALLOCA
#define HAVE_ALLOCA #define HAVE_ALLOCA
#endif
/*#define HAVE_QSORT*/ /*#define HAVE_QSORT*/
/* Features provided by SDL_string.h */ /* Features provided by SDL_string.h */

View file

@ -43,8 +43,10 @@
#ifdef ALSA_DYNAMIC #ifdef ALSA_DYNAMIC
#ifdef USE_DLVSYM #ifdef USE_DLVSYM
#ifndef __USE_GNU
#define __USE_GNU #define __USE_GNU
#endif #endif
#endif
#include <dlfcn.h> #include <dlfcn.h>
#include "SDL_name.h" #include "SDL_name.h"
#include "SDL_loadso.h" #include "SDL_loadso.h"

View file

@ -23,6 +23,7 @@
#include "SDL_stdlib.h" #include "SDL_stdlib.h"
#include "SDL_string.h" #include "SDL_string.h"
#ifndef HAVE_GETENV
#if defined(WIN32) && !defined(_WIN32_WCE) #if defined(WIN32) && !defined(_WIN32_WCE)
@ -173,6 +174,8 @@ char *SDL_getenv(const char *name)
#endif /* WIN32 */ #endif /* WIN32 */
#endif /* !HAVE_GETENV */
#ifdef TEST_MAIN #ifdef TEST_MAIN
#include <stdio.h> #include <stdio.h>

View file

@ -415,4 +415,4 @@ void SDL_qsort(void *base, size_t nmemb, size_t size,
qsort_words(base,nmemb,compare); qsort_words(base,nmemb,compare);
} }
#endif /* !HAVE_QSORT */ #endif /* !HAVE_QSORT */

View file

@ -67,4 +67,4 @@ void _aullshr()
#endif /* MSC_VER */ #endif /* MSC_VER */
#endif /* !HAVE_LIBC */ #endif /* !HAVE_LIBC */