From 70c781c803838f3542e71ed4b6240282fd727ed5 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 24 Aug 2022 10:25:56 -0700 Subject: [PATCH] Fixed build warning because of redefining string functions --- src/hidapi/libusb/hid.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/hidapi/libusb/hid.c b/src/hidapi/libusb/hid.c index 24ae0525f..37d01e34d 100644 --- a/src/hidapi/libusb/hid.c +++ b/src/hidapi/libusb/hid.c @@ -32,11 +32,29 @@ #include "SDL_mutex.h" #include "SDL_thread.h" +#ifdef realloc +#undef realloc +#endif #define realloc SDL_realloc +#ifdef snprintf +#undef snprintf +#endif #define snprintf SDL_snprintf +#ifdef strdup +#undef strdup +#endif #define strdup SDL_strdup +#ifdef strncpy +#undef strncpy +#endif #define strncpy SDL_strlcpy +#ifdef tolower +#undef tolower +#endif #define tolower SDL_tolower +#ifdef wcsncpy +#undef wcsncpy +#endif #define wcsncpy SDL_wcslcpy #ifndef HAVE_WCSDUP