aboutsummaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2013-04-28 14:07:50 +1000
committerAndrew Tridgell <tridge@samba.org>2013-05-04 19:18:39 +1000
commit5b3844621ca1c0a6181e49166c5c12f3000f6802 (patch)
tree10345c5c8a5052aa519b18ac7ac9a8400f395fa0 /nuttx
parent953acbe65014e2b2305c4338ca3711622fda3fdd (diff)
downloadpx4-firmware-5b3844621ca1c0a6181e49166c5c12f3000f6802.tar.gz
px4-firmware-5b3844621ca1c0a6181e49166c5c12f3000f6802.tar.bz2
px4-firmware-5b3844621ca1c0a6181e49166c5c12f3000f6802.zip
stdio: fixed build error for stdio on px4io
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/libc/stdio/lib_libvsprintf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nuttx/libc/stdio/lib_libvsprintf.c b/nuttx/libc/stdio/lib_libvsprintf.c
index 3d26ff810..2cc7950f7 100644
--- a/nuttx/libc/stdio/lib_libvsprintf.c
+++ b/nuttx/libc/stdio/lib_libvsprintf.c
@@ -1245,10 +1245,12 @@ int lib_vsprintf(FAR struct lib_outstream_s *obj, FAR const char *src, va_list a
{
#ifndef CONFIG_NOPRINTF_FIELDWIDTH
fmt = FMT_RJUST0;
+#ifdef CONFIG_LIBC_FLOATINGPOINT
if (IS_HASDOT(flags)) {
trunc = 0;
}
#endif
+#endif
}
#if 0
/* Center justification. */