mirror of https://github.com/libsdl-org/SDL.git
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 "SDL_internal.h"
|
||||||
#include "../../thread/SDL_systhread.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
|
#ifdef realloc
|
||||||
#undef realloc
|
#undef realloc
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue