SDL_malloc.c: workaround calling convention issues for real_xxx procs.
parent
1f2a241688
commit
ec1a0f62dd
|
@ -5305,10 +5305,10 @@ History:
|
||||||
#endif /* !HAVE_MALLOC */
|
#endif /* !HAVE_MALLOC */
|
||||||
|
|
||||||
#ifdef HAVE_MALLOC
|
#ifdef HAVE_MALLOC
|
||||||
#define real_malloc malloc
|
static void* SDLCALL real_malloc(size_t s) { return malloc(s); }
|
||||||
#define real_calloc calloc
|
static void* SDLCALL real_calloc(size_t n, size_t s) { return calloc(n, s); }
|
||||||
#define real_realloc realloc
|
static void* SDLCALL real_realloc(void *p, size_t s) { return realloc(p,s); }
|
||||||
#define real_free free
|
static void SDLCALL real_free(void *p) { free(p); }
|
||||||
#else
|
#else
|
||||||
#define real_malloc dlmalloc
|
#define real_malloc dlmalloc
|
||||||
#define real_calloc dlcalloc
|
#define real_calloc dlcalloc
|
||||||
|
|
Loading…
Reference in New Issue