From d65e2aa8e7a2114bcb32d8d80c107855d5f1de66 Mon Sep 17 00:00:00 2001 From: Juan Jose Garcia Ripoll Date: Mon, 31 Aug 2009 21:18:43 +0200 Subject: [PATCH] When we do not have neither signbit nor copysign, we fall back to _not_ supporting signed zeros. --- src/h/config.h.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/h/config.h.in b/src/h/config.h.in index e6f555b88..ddcb9b825 100644 --- a/src/h/config.h.in +++ b/src/h/config.h.in @@ -429,7 +429,9 @@ typedef unsigned @CL_FIXNUM_TYPE@ cl_hashkey; # ifdef HAVE_COPYSIGN # define signbit(x) (copysign(1.0,(x)) < 0) # else -# error "When using signed zeros we need also signbit() or copysign()" + /* Fall back to no signed zero */ +# undef ECL_SIGNED_ZERO +# define signbit(x) ((x) < 0) # endif # endif # endif