calculator: Fix compile issue in mingw32

Change-Id: I7d70b4f0d6fd574575298b0709e78b9096801c07
This commit is contained in:
Solomon Peachy 2023-09-22 09:58:59 -04:00
parent 74ded2bdd7
commit 57a47ef67a

View file

@ -732,12 +732,15 @@ static void oneOperand(void);
static void drawLines(void);
static void drawButtons(int group);
#ifndef _WIN32
double strtod(const char *nptr, char **endptr);
#endif
long long atoll(const char *nptr);
/* -----------------------------------------------------------------------
Standard library function
----------------------------------------------------------------------- */
#ifndef _WIN32
double strtod(const char *nptr, char **endptr)
{
double out;
@ -774,6 +777,7 @@ double strtod(const char *nptr, char **endptr)
*endptr=(char *) nptr;
return out;
}
#endif
// WARNING Unsafe: Use strtoll instead
long long atoll(const char *nptr)