From 55d3b1c3b3db553af72b1a563b95159fdbcb8112 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 28 Apr 2005 23:30:03 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=5964 --- lib/boinc_win.h | 1 + lib/parse.C | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/boinc_win.h b/lib/boinc_win.h index da083e014d..3751f1eb08 100644 --- a/lib/boinc_win.h +++ b/lib/boinc_win.h @@ -128,6 +128,7 @@ #define strdup _strdup #define read _read #define stat _stat +#define finite _finite // On the Win32 platform include file and line number information for each diff --git a/lib/parse.C b/lib/parse.C index aa7b9a505f..2d85fd5bb6 100644 --- a/lib/parse.C +++ b/lib/parse.C @@ -81,11 +81,7 @@ 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; }