summaryrefslogtreecommitdiff
path: root/libc/stdio
diff options
context:
space:
mode:
author"Jan-Benedict Glaw" <jbglaw@lug-owl.de>2006-01-26 20:50:21 +0000
committer"Jan-Benedict Glaw" <jbglaw@lug-owl.de>2006-01-26 20:50:21 +0000
commit33fb411a47d7f44841aefb13a538901bd3e41715 (patch)
treef5369b92dd3268884d813aeb0cf92acd575b6fa5 /libc/stdio
parent2f4829963a2619096ebba2be2ee950138006bb1f (diff)
Allow for targets that don't know about signed zero floats.
Diffstat (limited to 'libc/stdio')
-rw-r--r--libc/stdio/_fpmaxtostr.c4
1 files changed, 2 insertions, 2 deletions
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;
}