]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
uae/string: guard _strtoui64 compatibility macro
authorStefan Reinauer <stefan.reinauer@coreboot.org>
Thu, 21 May 2026 00:32:52 +0000 (17:32 -0700)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Sun, 31 May 2026 07:33:15 +0000 (00:33 -0700)
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

index 7b975a7475f424276be163ff99456ced2d954ba8..737b2bea363f9d4cf198e1b3a4e737fbe4e97756 100644 (file)
@@ -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