From e7fdbe3b977615f911b4a778033dca61a1f6210c Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Mon, 25 May 2026 18:51:10 +0300
Subject: [PATCH] _uitoa does not exist
---
configure | 2 +-
configure.ac | 2 +-
include/SDL_config.h.in | 1 -
include/SDL_stdinc.h | 5 -----
4 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/configure b/configure
index 4084b33c9..e540d665d 100755
--- a/configure
+++ b/configure
@@ -16188,7 +16188,7 @@ fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
- for ac_func in malloc calloc realloc free getenv putenv unsetenv qsort abs bcopy memset memcmp memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtod strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp sscanf snprintf vsnprintf iconv sigaction setjmp nanosleep getauxval elf_aux_info
+ for ac_func in malloc calloc realloc free getenv putenv unsetenv qsort abs bcopy memset memcmp memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _ultoa strtod strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp sscanf snprintf vsnprintf iconv sigaction setjmp nanosleep getauxval elf_aux_info
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
diff --git a/configure.ac b/configure.ac
index bee136b00..059761ec4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -172,7 +172,7 @@ dnl Checks for library functions.
AC_DEFINE(HAVE_MPROTECT)
]),
)
- AC_CHECK_FUNCS(malloc calloc realloc free getenv putenv unsetenv qsort abs bcopy memset memcmp memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtod strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp sscanf snprintf vsnprintf iconv sigaction setjmp nanosleep getauxval elf_aux_info)
+ AC_CHECK_FUNCS(malloc calloc realloc free getenv putenv unsetenv qsort abs bcopy memset memcmp memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _ultoa strtod strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp sscanf snprintf vsnprintf iconv sigaction setjmp nanosleep getauxval elf_aux_info)
AC_CHECK_LIB(iconv, libiconv_open, [EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"])
AC_CHECK_LIB(m, pow, [EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"])
diff --git a/include/SDL_config.h.in b/include/SDL_config.h.in
index 7453e1add..df307c05d 100644
--- a/include/SDL_config.h.in
+++ b/include/SDL_config.h.in
@@ -110,7 +110,6 @@
#undef HAVE_STRSTR
#undef HAVE_ITOA
#undef HAVE__LTOA
-#undef HAVE__UITOA
#undef HAVE__ULTOA
#undef HAVE_STRTOL
#undef HAVE_STRTOUL
diff --git a/include/SDL_stdinc.h b/include/SDL_stdinc.h
index 2afd27516..1beaecf2b 100644
--- a/include/SDL_stdinc.h
+++ b/include/SDL_stdinc.h
@@ -504,12 +504,7 @@ extern DECLSPEC char * SDLCALL SDL_strstr(const char *haystack, const char *need
extern DECLSPEC char * SDLCALL SDL_ltoa(long value, char *string, int radix);
#endif
-#ifdef HAVE__UITOA
-#define SDL_uitoa _uitoa
-#else
#define SDL_uitoa(value, string, radix) SDL_ultoa((long)value, string, radix)
-#endif
-
#ifdef HAVE__ULTOA
#define SDL_ultoa _ultoa
#else