Use SDL alloc functions in libusb/hid.c
This commit is contained in:
1 parent
41e7335a0f
commit
847c64b00d
1 file changed
+12
@@ -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
|
||||
|
||||
Reference in new issue
Block a user