src/stdlib/SDL_malloc.c
changeset 1465 8dfa9a6d69a5
parent 1456 84de7511f79f
child 1662 782fd950bd46
child 1895 c121d94672cb
child 4061 95ecf165f113
     1.1 --- a/src/stdlib/SDL_malloc.c	Sat Mar 04 05:13:03 2006 +0000
     1.2 +++ b/src/stdlib/SDL_malloc.c	Sat Mar 04 08:24:35 2006 +0000
     1.3 @@ -27,17 +27,12 @@
     1.4  
     1.5  #ifndef HAVE_MALLOC
     1.6  
     1.7 +#define LACKS_SYS_TYPES_H
     1.8  #define LACKS_STDIO_H
     1.9  #define LACKS_STRINGS_H
    1.10  #define LACKS_STRING_H
    1.11  #define LACKS_STDLIB_H
    1.12  #define ABORT
    1.13 -#define memset	SDL_memset
    1.14 -#define memcpy	SDL_memcpy
    1.15 -#define malloc	SDL_malloc
    1.16 -#define calloc	SDL_calloc
    1.17 -#define realloc	SDL_realloc
    1.18 -#define free	SDL_free
    1.19  
    1.20  /*
    1.21    This is a version (aka dlmalloc) of malloc/free/realloc written by
    1.22 @@ -496,6 +491,7 @@
    1.23  #define LACKS_STRINGS_H
    1.24  #define LACKS_SYS_TYPES_H
    1.25  #define LACKS_ERRNO_H
    1.26 +#define LACKS_FCNTL_H 
    1.27  #define MALLOC_FAILURE_ACTION
    1.28  #define MMAP_CLEARS 0 /* WINCE and some others apparently don't clear */
    1.29  #endif  /* WIN32 */
    1.30 @@ -613,6 +609,13 @@
    1.31  #define MALLINFO_FIELD_TYPE size_t
    1.32  #endif  /* MALLINFO_FIELD_TYPE */
    1.33  
    1.34 +#define memset	SDL_memset
    1.35 +#define memcpy	SDL_memcpy
    1.36 +#define malloc	SDL_malloc
    1.37 +#define calloc	SDL_calloc
    1.38 +#define realloc	SDL_realloc
    1.39 +#define free	SDL_free
    1.40 +
    1.41  /*
    1.42    mallopt tuning options.  SVID/XPG defines four standard parameter
    1.43    numbers for mallopt, normally defined in malloc.h.  None of these