summaryrefslogtreecommitdiff
path: root/apps/plugins/sdl/src/stdlib/SDL_malloc.c
diff options
context:
space:
mode:
authorVencislav Atanasov <user890104@freemyipod.org>2019-07-28 23:31:50 +0300
committerVencislav Atanasov <user890104@freemyipod.org>2019-07-29 01:59:40 +0300
commit183e45e8d0b4425bbd41fab37f2a4dc143e1e27c (patch)
tree5e25c211f6a3bd46dc594123451af00c1bf7ef9c /apps/plugins/sdl/src/stdlib/SDL_malloc.c
parente19857e712ff54cec08d5a6342a32dae2788cb50 (diff)
downloadrockbox-183e45e8d0b4425bbd41fab37f2a4dc143e1e27c.tar.gz
rockbox-183e45e8d0b4425bbd41fab37f2a4dc143e1e27c.zip
sdl: Remove platform-specific code
Also nuke the Makefiles of Duke Nukem 3D (pun intended). Change-Id: If2707cf079bfb9299347f9c5f980780134b6ecda
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