aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/printf_fphex.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/printf_fphex.c')
-rw-r--r--stdio-common/printf_fphex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stdio-common/printf_fphex.c b/stdio-common/printf_fphex.c
index 4099bf2..fb53d24 100644
--- a/stdio-common/printf_fphex.c
+++ b/stdio-common/printf_fphex.c
@@ -151,6 +151,7 @@ __printf_fphex (FILE *fp,
/* Fetch the argument value. */
+#ifndef __NO_LONG_DOUBLE_MATH
if (info->is_long_double && sizeof (long double) > sizeof (double))
{
fpnum.ldbl.d = *(const long double *) args[0];
@@ -170,6 +171,7 @@ __printf_fphex (FILE *fp,
}
}
else
+#endif /* no long double */
{
fpnum.dbl.d = *(const double *) args[0];