mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-11 17:12:31 +00:00
Use SDL alloc functions in libusb/hid.c
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user