From 43b613877df92e7d73f862550765f34a217ce918 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 28 Jun 2020 14:04:30 +0800 Subject: [PATCH] libc/stdio: Remove sys/types.h inclusion for printf/scanf since double_t move from sys/types.h to math.h now and remove math.h inclusion too because lib_dtoa_engine.h already include Signed-off-by: Xiang Xiao Change-Id: I3497a73908301d999cf1cfc4a66552a7ca4868c6 --- libs/libc/stdio/legacy_libvsprintf.c | 1 - libs/libc/stdio/lib_dtoa_data.c | 5 ++++- libs/libc/stdio/lib_dtoa_engine.c | 3 --- libs/libc/stdio/lib_libdtoa.c | 1 - libs/libc/stdio/lib_libvsprintf.c | 1 - 5 files changed, 4 insertions(+), 7 deletions(-) diff --git a/libs/libc/stdio/legacy_libvsprintf.c b/libs/libc/stdio/legacy_libvsprintf.c index 3e176f4213..440b6bec2b 100644 --- a/libs/libc/stdio/legacy_libvsprintf.c +++ b/libs/libc/stdio/legacy_libvsprintf.c @@ -39,7 +39,6 @@ #include -#include #include #include #include diff --git a/libs/libc/stdio/lib_dtoa_data.c b/libs/libc/stdio/lib_dtoa_data.c index 41e8874666..b76a9f4697 100644 --- a/libs/libc/stdio/lib_dtoa_data.c +++ b/libs/libc/stdio/lib_dtoa_data.c @@ -37,7 +37,6 @@ * Included Files ****************************************************************************/ -#include #include "lib_dtoa_engine.h" /**************************************************************************** @@ -275,3 +274,7 @@ const double_t g_dtoa_round[] = 5e0, #endif }; + +/**************************************************************************** + * Public Functions + ****************************************************************************/ diff --git a/libs/libc/stdio/lib_dtoa_engine.c b/libs/libc/stdio/lib_dtoa_engine.c index a63b16a66f..16a89b9625 100644 --- a/libs/libc/stdio/lib_dtoa_engine.c +++ b/libs/libc/stdio/lib_dtoa_engine.c @@ -37,9 +37,6 @@ * Included Files ****************************************************************************/ -#include -#include - #include "lib_dtoa_engine.h" /**************************************************************************** diff --git a/libs/libc/stdio/lib_libdtoa.c b/libs/libc/stdio/lib_libdtoa.c index 6f02566635..31d6d1cd6f 100644 --- a/libs/libc/stdio/lib_libdtoa.c +++ b/libs/libc/stdio/lib_libdtoa.c @@ -46,7 +46,6 @@ #include -#include #include #include #include diff --git a/libs/libc/stdio/lib_libvsprintf.c b/libs/libc/stdio/lib_libvsprintf.c index 7a0f01850e..0ac228a5bf 100644 --- a/libs/libc/stdio/lib_libvsprintf.c +++ b/libs/libc/stdio/lib_libvsprintf.c @@ -42,7 +42,6 @@ #include -#include #include #include #include