compile fixes

svn path=/trunk/boinc/; revision=18589
This commit is contained in:
David Anderson 2009-07-08 22:49:30 +00:00
parent 43231a8dbb
commit 114ba8111d
2 changed files with 11 additions and 8 deletions

View File

@ -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
}

View File

@ -21,6 +21,7 @@
#else
#include "boinc_win.h"
#endif
//#include <Wtsapi32.h> // 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