aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgoodale <goodale@ff385933-4943-42dc-877b-ffc776028de6>2001-05-16 12:56:35 +0000
committergoodale <goodale@ff385933-4943-42dc-877b-ffc776028de6>2001-05-16 12:56:35 +0000
commit06b275836b7d60f7173e5928fc3fcf396ce26648 (patch)
tree7fc6649c348d678ca4c63582336c6a1bc3646285
parentdd988b4f3f6c2a08e0f89db3ef9a3ffb6732acc1 (diff)
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
-rw-r--r--src/NaNCheck.c8
1 files changed, 8 insertions, 0 deletions
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 */