summaryrefslogtreecommitdiff
path: root/libc/stdio
diff options
context:
space:
mode:
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;
}