mirror of
https://github.com/libsdl-org/SDL.git
synced 2024-11-27 05:43:29 +08:00
Use SDL alloc functions in libusb/hid.c
This commit is contained in:
parent
41e7335a0f
commit
847c64b00d
@ -30,6 +30,18 @@
|
||||
#include "SDL_internal.h"
|
||||
#include "../../thread/SDL_systhread.h"
|
||||
|
||||
#ifdef calloc
|
||||
#undef calloc
|
||||
#endif
|
||||
#define calloc SDL_calloc
|
||||
#ifdef malloc
|
||||
#undef malloc
|
||||
#endif
|
||||
#define malloc SDL_malloc
|
||||
#ifdef free
|
||||
#undef free
|
||||
#endif
|
||||
#define free SDL_free
|
||||
#ifdef realloc
|
||||
#undef realloc
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user