Prepend isnan with :: to satisfy CentOS compiler.

pull/927/merge
Fredrik Öhrström 2023-05-02 17:51:36 +02:00
rodzic d135ed98bd
commit 4c59363641
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -475,7 +475,7 @@ string strWithUnitLowerCase(double v, Unit u)
string valueToString(double v, Unit u)
{
if (isnan(v))
if (::isnan(v))
{
return "null";
}

Wyświetl plik

@ -1365,7 +1365,7 @@ string strdate(struct tm *date)
string strdate(double v)
{
if (isnan(v)) return "null";
if (::isnan(v)) return "null";
struct tm date;
time_t t = v;
localtime_r(&t, &date);
@ -1381,7 +1381,7 @@ string strdatetime(struct tm *datetime)
string strdatetime(double v)
{
if (isnan(v)) return "null";
if (::isnan(v)) return "null";
struct tm datetime;
time_t t = v;
localtime_r(&t, &datetime);