Skip to content
Snippets Groups Projects
Commit 4f3f3f67 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Borland C/C++ doesn't have strto[u]ll()

parent c7eb313c
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3549 passed
......@@ -1655,6 +1655,7 @@ static ulong parseULongInteger(const char* value)
return(strtoul(value,NULL,0));
}
#if !defined __BORLANDC__
static int64_t parseInt64(const char* value)
{
if(isTrue(value))
......@@ -1670,6 +1671,7 @@ static uint64_t parseUInt64(const char* value)
return strtoull(value,NULL,0);
}
#endif
static BOOL parseBool(const char* value)
{
......@@ -1817,6 +1819,7 @@ ulong iniGetULongInt(str_list_t list, const char* section, const char* key, ulon
return(parseULongInteger(vp));
}
#if !defined __BORLANDC__
int64_t iniReadInt64(FILE* fp, const char* section, const char* key, int64_t deflt)
{
char* value;
......@@ -1868,6 +1871,7 @@ uint64_t iniGetUInt64(str_list_t list, const char* section, const char* key, uin
return parseUInt64(vp);
}
#endif
int64_t iniReadBytes(FILE* fp, const char* section, const char* key, uint unit, int64_t deflt)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment