diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-04-09 12:08:55 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-04-09 12:08:55 (GMT) |
commit | 7e67b8effbef43205240ec5b416ce5697ce164b4 (patch) | |
tree | 1069ba6dd1250c6a638d8eb7043596bcb6272186 | |
parent | 52141fb615e220bbe35ccca246fd6d7d99e3d71b (diff) | |
download | CMake-7e67b8effbef43205240ec5b416ce5697ce164b4.zip CMake-7e67b8effbef43205240ec5b416ce5697ce164b4.tar.gz CMake-7e67b8effbef43205240ec5b416ce5697ce164b4.tar.bz2 |
Attempt to fix FIXNUM
-rw-r--r-- | Source/cmCTest.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index dcd6e3a..07284e2 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -27,8 +27,13 @@ #include <stdio.h> #include <time.h> #include <math.h> +#include <float.h> -#define FIXNUM(x) ((isnan(x))?((0)):((isinf(x))?(0):(x))) +#ifdef _WIN32 +# define FIXNUM(x) (_finite(x)?(x):(0)) +#else +# define FIXNUM(x) (finite(x)?(x):(0)) +#endif #ifdef HAVE_CURL static struct tm* GetNightlyTime(std::string str) |