From e8731933cccd5948ea52e818b9a6f33c9b83334e Mon Sep 17 00:00:00 2001 From: Sylvain Date: Tue, 9 Nov 2021 13:32:28 +0100 Subject: [PATCH] Fixed warning: macro is not used --- src/stdlib/SDL_string.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stdlib/SDL_string.c b/src/stdlib/SDL_string.c index 8a49af5f7..cc25cc83c 100644 --- a/src/stdlib/SDL_string.c +++ b/src/stdlib/SDL_string.c @@ -34,8 +34,10 @@ #define va_copy(dst, src) dst = src #endif +#if !defined(HAVE_VSSCANF) || !defined(HAVE_STRTOL) || !defined(HAVE_STRTOUL) || !defined(HAVE_STRTOD) || !defined(HAVE_STRTOLL) || !defined(HAVE_STRTOULL) #define SDL_isupperhex(X) (((X) >= 'A') && ((X) <= 'F')) #define SDL_islowerhex(X) (((X) >= 'a') && ((X) <= 'f')) +#endif #define UTF8_IsLeadByte(c) ((c) >= 0xC0 && (c) <= 0xF4) #define UTF8_IsTrailingByte(c) ((c) >= 0x80 && (c) <= 0xBF)