From 40889daf974205daf32b45497fcec946b77fd541 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 21 Feb 2019 14:52:44 -0600 Subject: [PATCH] libs/libc/stdio/lib_libvsprintf.c and include/limits.h: Some minor corrections. --- include/limits.h | 2 +- libs/libc/stdio/lib_libvsprintf.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/include/limits.h b/include/limits.h index a954917654..a1de442117 100644 --- a/include/limits.h +++ b/include/limits.h @@ -293,7 +293,7 @@ * Minimum Acceptable Value: 10000 */ -#define TMP_MAX10000 +#define TMP_MAX 10000 /* Required for asynchronous I/O */ diff --git a/libs/libc/stdio/lib_libvsprintf.c b/libs/libc/stdio/lib_libvsprintf.c index 5b41e8bef5..a5e0ae3ec8 100644 --- a/libs/libc/stdio/lib_libvsprintf.c +++ b/libs/libc/stdio/lib_libvsprintf.c @@ -48,6 +48,7 @@ #include #include +#include #include #include "lib_dtoa_engine.h" @@ -57,6 +58,16 @@ * Pre-processor Definitions ****************************************************************************/ +/* CONFIG_LIBC_LONG_LONG is not a valid selection of the compiler does not + * support long long types. + */ + +#ifndef CONFIG_HAVE_LONG_LONG +# undef CONFIG_LIBC_LONG_LONG +#endif + +/* [Re]define putc() */ + #ifdef putc # undef putc #endif