From 114ba8111dc18908a1f80205650f97a9a69dc60e Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 8 Jul 2009 22:49:30 +0000 Subject: [PATCH] compile fixes svn path=/trunk/boinc/; revision=18589 --- client/sim_util.cpp | 16 ++++++++-------- lib/win_util.cpp | 3 +++ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/client/sim_util.cpp b/client/sim_util.cpp index fb307775f6..62c6400d2b 100644 --- a/client/sim_util.cpp +++ b/client/sim_util.cpp @@ -561,11 +561,11 @@ int IP_RESULT::parse(FILE*) { return 0; } -bool boinc_is_finite(double x) { -#if defined (HPUX_SOURCE) - return _Isfinite(x); - return false; -#else - return finite(x); -#endif -} +bool boinc_is_finite(double x) { +#if defined (HPUX_SOURCE) + return _Isfinite(x); + return false; +#else + return (finite(x) != 0); +#endif +} diff --git a/lib/win_util.cpp b/lib/win_util.cpp index 7b876921ff..29664737c5 100644 --- a/lib/win_util.cpp +++ b/lib/win_util.cpp @@ -21,6 +21,7 @@ #else #include "boinc_win.h" #endif +//#include // not present on academic version of VS2005! #include "win_util.h" @@ -830,6 +831,7 @@ void chdir_to_data_dir() { if (lpszRegistryValue) free(lpszRegistryValue); } +#if 0 // return true if running under remote desktop // (in which case CUDA apps don't work) // @@ -849,3 +851,4 @@ bool is_remote_desktop() { } return false; } +#endif \ No newline at end of file