From 4321c5e5628685c5fe8d2995f6fdf510fa8462bd Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 5 Nov 2022 16:46:58 +0200 Subject: [PATCH] Fix build with Tiny C * src/config.h.W32 (strtoll, strtoull) [__TINYC__]: Redirect to _strtoi64 and _strtoui64, respectively. Reported by Christian Jullien . --- src/config.h.W32 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/config.h.W32 b/src/config.h.W32 index 1a03a041..2fe940b7 100644 --- a/src/config.h.W32 +++ b/src/config.h.W32 @@ -343,6 +343,10 @@ this program. If not, see . */ /* #undef HAVE_STRSIGNAL */ /* Define to 1 if you have the `strtoll' function. */ ++#ifdef __TINYC__ ++#define strtoll _strtoi64 ++#define strtoull _strtoui64 ++#endif #define HAVE_STRTOLL 1 /* Define to 1 if `d_type' is a member of `struct dirent'. */