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