Please note that even VisualC++ uses defines (in mapping.h)
/**
 * Map stroll to _strtoi64
 *
 * stroll does not properly map in Windows; this is needed to ensure calls to
 * strtoll(const char *nptr, char **endptr, int base) will compile in Windows.
 */
#define strtoll _strtoi64

/**
 * Map strtoull to _strtoui64
 *
 * strtoull does not properly map in Windows; this is needed to ensure calls to
 * strtoull(const char *nptr, char **endptr, int base) will compile in Windows.
 */
#define strtoull _strtoui64

So, probably we'll do the same for tcc.

I suggest you check if those macros are not already defined as I hope they'll 
soon be defined that way in tcc stdlib.h

#ifdef __TINYC__
#if !defined(strtoll)
#define strtoll _strtoi64
#endif
#if !defined(strtoull)
#define strtoull _strtoui64
#endif
#endif

C.

-----Original Message-----
From: Eli Zaretskii [mailto:e...@gnu.org] 
Sent: Saturday, November 05, 2022 15:49
To: psm...@gnu.org
Cc: jull...@eligis.com; make-...@gnu.org; tinycc-devel@nongnu.org
Subject: Re: GNUmake v4.4 port on Windows with tcc

> From: Paul Smith <psm...@gnu.org>
> Cc: make-...@gnu.org, tinycc-devel@nongnu.org
> Date: Sat, 05 Nov 2022 10:18:55 -0400
> 
> On Thu, 2022-11-03 at 16:45 +0200, Eli Zaretskii wrote:
> > > Of course it does.
> > 
> > Thanks.  Paul, should I install this?
> 
> Yes please thanks!

Done.


_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to