diff --git a/lib/parse.C b/lib/parse.C index 54ffb6de66..aa7b9a505f 100644 --- a/lib/parse.C +++ b/lib/parse.C @@ -81,7 +81,11 @@ bool parse_double(const char* buf, const char* tag, double& x) { setlocale(LC_NUMERIC, "C"); y = atof(p+strlen(tag)); setlocale(LC_NUMERIC, strLocale.c_str()); +#ifdef _WIN32_ if (_finite(y)) { +#else + if (finite(y)) { +#endif x = y; return true; }