From 7e67b8effbef43205240ec5b416ce5697ce164b4 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Wed, 9 Apr 2003 08:08:55 -0400 Subject: [PATCH] Attempt to fix FIXNUM --- Source/cmCTest.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index dcd6e3a05..07284e248 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -27,8 +27,13 @@ #include #include #include +#include -#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)