From: Stefan Reinauer Date: Thu, 21 May 2026 00:32:52 +0000 (-0700) Subject: uae/string: guard _strtoui64 compatibility macro X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=794c675d9d1a94c6cb8ab6a326f8692fc16fac25;p=francis%2Fwinuae.git 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. --- 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