From 33fb411a47d7f44841aefb13a538901bd3e41715 Mon Sep 17 00:00:00 2001 From: "\"Jan-Benedict Glaw\"" Date: Thu, 26 Jan 2006 20:50:21 +0000 Subject: Allow for targets that don't know about signed zero floats. --- libc/stdio/_fpmaxtostr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libc/stdio') diff --git a/libc/stdio/_fpmaxtostr.c b/libc/stdio/_fpmaxtostr.c index 8534677f0..859d11a54 100644 --- a/libc/stdio/_fpmaxtostr.c +++ b/libc/stdio/_fpmaxtostr.c @@ -280,11 +280,11 @@ ssize_t attribute_hidden _fpmaxtostr(FILE * fp, __fpmax_t x, struct printf_info } if (x == 0) { /* Handle 0 now to avoid false positive. */ -#if 1 +#ifdef __UCLIBC_HAVE_SIGNED_ZERO__ if (zeroisnegative(x)) { /* Handle 'signed' zero. */ *sign_str = '-'; } -#endif +#endif /* __UCLIBC_HAVE_SIGNED_ZERO__ */ exp = -1; goto GENERATE_DIGITS; } -- cgit v1.2.3