From 6b45f89adb44527ece9d28dfb5d7365ee28d711d Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Mon, 7 Nov 2022 16:50:30 -0500 Subject: [PATCH] * src/config.h.W32 [TCC]: Only redefine strtoll if not defined --- src/config.h.W32 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/config.h.W32 b/src/config.h.W32 index 5488021f..369e897d 100644 --- a/src/config.h.W32 +++ b/src/config.h.W32 @@ -343,11 +343,15 @@ 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 +#ifdef __TINYC__ +# ifndef strtoll +# define strtoll _strtoi64 +# endif +# ifndef strtoull +# define strtoull _strtoui64 +# endif +#endif /* Define to 1 if `d_type' is a member of `struct dirent'. */ /* SV 57152: MinGW64 version of dirent doesn't support d_type. */