From 794c675d9d1a94c6cb8ab6a326f8692fc16fac25 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Wed, 20 May 2026 17:32:52 -0700 Subject: [PATCH] uae/string: guard _strtoui64 compatibility macro Some host C libraries or compatibility headers can provide _strtoui64 before this header defines the TCHAR-style aliases. Only provide the fallback when it is missing, and map it to strtoull so the unsigned conversion matches the name. --- include/uae/string.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/uae/string.h b/include/uae/string.h index 7b975a74..737b2bea 100644 --- a/include/uae/string.h +++ b/include/uae/string.h @@ -23,7 +23,9 @@ #define _istupper isupper #define _sntprintf snprintf #define _stprintf sprintf -#define _strtoui64 strtoll +#ifndef _strtoui64 +#define _strtoui64 strtoull +#endif #define _tcscat strcat #define _tcschr strchr #define _tcscmp strcmp -- 2.47.3