From 5235526b1601e9d8461dd3f590c8ffaa2f581c10 Mon Sep 17 00:00:00 2001 From: Alex Henrie Date: Tue, 18 Oct 2022 21:38:39 -0600 Subject: [PATCH] include: Move strto[iu]max(_l) from stdlib.h to inttypes.h. Needed to compile PuTTY. --- include/msvcrt/inttypes.h | 5 +++++ include/msvcrt/stdlib.h | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/msvcrt/inttypes.h b/include/msvcrt/inttypes.h index dd30bc97c85..d6ad4868d05 100644 --- a/include/msvcrt/inttypes.h +++ b/include/msvcrt/inttypes.h @@ -234,6 +234,11 @@ typedef struct { #define SCNuPTR "u" #endif +_ACRTIMP __int64 __cdecl strtoimax(const char*,char**,int); +_ACRTIMP __int64 __cdecl strtoimax_l(const char*,char**,int,_locale_t); +_ACRTIMP unsigned __int64 __cdecl strtoumax(const char*,char**,int); +_ACRTIMP unsigned __int64 __cdecl strtoumax_l(const char*,char**,int,_locale_t); + #ifdef __cplusplus } #endif diff --git a/include/msvcrt/stdlib.h b/include/msvcrt/stdlib.h index f7acdda73cb..a6e1c7eee02 100644 --- a/include/msvcrt/stdlib.h +++ b/include/msvcrt/stdlib.h @@ -229,10 +229,6 @@ _ACRTIMP __msvcrt_long __cdecl strtol(const char*,char**,int); _ACRTIMP __msvcrt_ulong __cdecl strtoul(const char*,char**,int); _ACRTIMP __int64 __cdecl _strtoll_l(const char*,char**,int,_locale_t); _ACRTIMP unsigned __int64 __cdecl _strtoull_l(const char*,char**,int,_locale_t); -_ACRTIMP __int64 __cdecl strtoimax(const char*,char**,int); -_ACRTIMP __int64 __cdecl strtoimax_l(const char*,char**,int,_locale_t); -_ACRTIMP unsigned __int64 __cdecl strtoumax(const char*,char**,int); -_ACRTIMP unsigned __int64 __cdecl strtoumax_l(const char*,char**,int,_locale_t); _ACRTIMP __int64 __cdecl _strtoi64(const char*,char**,int); _ACRTIMP __int64 __cdecl _strtoi64_l(const char*,char**,int,_locale_t); _ACRTIMP unsigned __int64 __cdecl _strtoui64(const char*,char**,int);