From 4feff820bed83b84acb3267edfcfbc1d18a2bce1 Mon Sep 17 00:00:00 2001 From: Daniel Llorens Date: Mon, 10 Jan 2022 12:46:57 +0100 Subject: [PATCH] Don't use HAVE_COPYSIGN in libguile/numbers.c * libguile/numbers.c (icmplx2str): As stated. copysign() is required by C99 and already used without guards elsewhere in this file. --- libguile/numbers.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libguile/numbers.c b/libguile/numbers.c index 1a96d9c8c..83fe027a9 100644 --- a/libguile/numbers.c +++ b/libguile/numbers.c @@ -3450,11 +3450,7 @@ icmplx2str (double real, double imag, char *str, int radix) double sgn; i = idbl2str (real, str, radix); -#ifdef HAVE_COPYSIGN sgn = copysign (1.0, imag); -#else - sgn = imag; -#endif /* Don't output a '+' for negative numbers or for Inf and NaN. They will provide their own sign. */ if (sgn >= 0 && isfinite (imag))