summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/xprintf.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2006-04-01 19:06:54 +0000
committerphk <phk@FreeBSD.org>2006-04-01 19:06:54 +0000
commita6edaf1c5c5a75d8ff61e82e0a7a94d9066aa556 (patch)
tree414dd43b4bfb97d3d754134156d9b721f643e6f5 /lib/libc/stdio/xprintf.c
parent01ed5990aef062b97e91680895804b9689c8076b (diff)
downloadFreeBSD-src-a6edaf1c5c5a75d8ff61e82e0a7a94d9066aa556.zip
FreeBSD-src-a6edaf1c5c5a75d8ff61e82e0a7a94d9066aa556.tar.gz
Add missing #if's for NO_FLOATING_POINT
Diffstat (limited to 'lib/libc/stdio/xprintf.c')
-rw-r--r--lib/libc/stdio/xprintf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/stdio/xprintf.c b/lib/libc/stdio/xprintf.c
index c7814fa..8d529fc 100644
--- a/lib/libc/stdio/xprintf.c
+++ b/lib/libc/stdio/xprintf.c
@@ -496,10 +496,14 @@ __v2printf(FILE *fp, const char *fmt0, unsigned pct, const va_list ap)
args[ch].pwchararg = va_arg (ap, wchar_t *);
break;
case PA_DOUBLE:
+#ifndef NO_FLOATING_POINT
args[ch].doublearg = va_arg (ap, double);
+#endif
break;
case PA_DOUBLE | PA_FLAG_LONG_DOUBLE:
+#ifndef NO_FLOATING_POINT
args[ch].longdoublearg = va_arg (ap, long double);
+#endif
break;
default:
errx(1, "argtype = %x (fmt = \"%s\")\n",
OpenPOWER on IntegriCloud