summaryrefslogtreecommitdiff
path: root/apps/plugins/sdl/src/stdlib/SDL_malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/sdl/src/stdlib/SDL_malloc.c')
-rw-r--r--apps/plugins/sdl/src/stdlib/SDL_malloc.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/apps/plugins/sdl/src/stdlib/SDL_malloc.c b/apps/plugins/sdl/src/stdlib/SDL_malloc.c
index f025e4349a..e049a76c6b 100644
--- a/apps/plugins/sdl/src/stdlib/SDL_malloc.c
+++ b/apps/plugins/sdl/src/stdlib/SDL_malloc.c
@@ -241,10 +241,6 @@ Be careful in setting #define values for numerical constants of type
241size_t. On some systems, literal values are not automatically extended 241size_t. On some systems, literal values are not automatically extended
242to size_t precision unless they are explicitly casted. 242to size_t precision unless they are explicitly casted.
243 243
244WIN32 default: defined if _WIN32 defined
245 Defining WIN32 sets up defaults for MS environment and compilers.
246 Otherwise defaults are for unix.
247
248MALLOC_ALIGNMENT default: (size_t)8 244MALLOC_ALIGNMENT default: (size_t)8
249 Controls the minimum alignment for malloc'ed chunks. It must be a 245 Controls the minimum alignment for malloc'ed chunks. It must be a
250 power of two and at least 8, even on machines for which smaller 246 power of two and at least 8, even on machines for which smaller
@@ -474,28 +470,6 @@ DEFAULT_MMAP_THRESHOLD default: 256K
474 470
475*/ 471*/
476 472
477#ifndef WIN32
478#ifdef _WIN32
479#define WIN32 1
480#endif /* _WIN32 */
481#endif /* WIN32 */
482#ifdef WIN32
483#define WIN32_LEAN_AND_MEAN
484#include <windows.h>
485#define HAVE_MMAP 1
486#define HAVE_MORECORE 0
487#define LACKS_UNISTD_H
488#define LACKS_SYS_PARAM_H
489#define LACKS_SYS_MMAN_H
490#define LACKS_STRING_H
491#define LACKS_STRINGS_H
492#define LACKS_SYS_TYPES_H
493#define LACKS_ERRNO_H
494#define LACKS_FCNTL_H
495#define MALLOC_FAILURE_ACTION
496#define MMAP_CLEARS 0 /* WINCE and some others apparently don't clear */
497#endif /* WIN32 */
498
499#if defined(DARWIN) || defined(_DARWIN) 473#if defined(DARWIN) || defined(_DARWIN)
500/* Mac OSX docs advise not to use sbrk; it seems better to use mmap */ 474/* Mac OSX docs advise not to use sbrk; it seems better to use mmap */
501#ifndef HAVE_MORECORE 475#ifndef HAVE_MORECORE