From 06b275836b7d60f7173e5928fc3fcf396ce26648 Mon Sep 17 00:00:00 2001 From: goodale Date: Wed, 16 May 2001 12:56:35 +0000 Subject: A temporary check to stop compilation on a machine with no isnan function. Should really write a Util_IsNaN function since the standard at least says what a number is. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@8 ff385933-4943-42dc-877b-ffc776028de6 --- src/NaNCheck.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/NaNCheck.c b/src/NaNCheck.c index eafd3cd..0824cf3 100644 --- a/src/NaNCheck.c +++ b/src/NaNCheck.c @@ -223,6 +223,8 @@ static void PrintWarning (const char *error_type, #else +#ifdef HAVE_ISNAN + #define CHECK_DATA(cctk_type) \ { \ int _i; \ @@ -239,6 +241,12 @@ static void PrintWarning (const char *error_type, } \ } +#else + +#error Unable to check for NaNs on this architecture yet + +#endif /* HAVE_ISNAN */ + #endif /* HAVE_FINITE */ -- cgit v1.2.3