From 58e3317afb0e771f4e273ed15bf6556da7b4b071 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 28 Apr 2005 23:22:14 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=5963 --- lib/parse.C | 4 ++++ 1 file changed, 4 insertions(+) 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; }