Reverted r3255:3256. Don't actually need it unless the build is broken. :)
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402525
This commit is contained in:
parent
3a31a8b822
commit
280618d6f5
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
@ -3912,7 +3913,7 @@ 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…
Add table
Add a link
Reference in a new issue