Use SDL alloc functions in libusb/hid.c

This commit is contained in:
Anonymous Maarten 2023-03-27 19:52:34 +02:00
parent 41e7335a0f
commit 847c64b00d

View File

@ -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