mirror of
https://github.com/yawut/SDL.git
synced 2026-05-05 20:57:28 -05:00
Reverted r3255:3256. Don't actually need it unless the build is broken. :)
--HG-- branch : SDL-1.2
This commit is contained in:
parent
9d4121fcce
commit
6d23d090bb
|
|
@ -610,6 +610,7 @@ DEFAULT_MMAP_THRESHOLD default: 256K
|
|||
#endif /* MALLINFO_FIELD_TYPE */
|
||||
|
||||
#define memset SDL_memset
|
||||
#define memcpy SDL_memcpy
|
||||
#define malloc SDL_malloc
|
||||
#define calloc SDL_calloc
|
||||
#define realloc SDL_realloc
|
||||
|
|
@ -3838,7 +3839,7 @@ static void* internal_realloc(mstate m, void* oldmem, size_t bytes) {
|
|||
void* newmem = internal_malloc(m, bytes);
|
||||
if (newmem != 0) {
|
||||
size_t oc = oldsize - overhead_for(oldp);
|
||||
SDL_memcpy(newmem, oldmem, (oc < bytes)? oc : bytes);
|
||||
memcpy(newmem, oldmem, (oc < bytes)? oc : bytes);
|
||||
internal_free(m, oldmem);
|
||||
}
|
||||
return newmem;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user