From 5b3844621ca1c0a6181e49166c5c12f3000f6802 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 28 Apr 2013 14:07:50 +1000 Subject: stdio: fixed build error for stdio on px4io --- nuttx/libc/stdio/lib_libvsprintf.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nuttx') 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,9 +1245,11 @@ 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 -- cgit v1.2.3