From 04757bd11c82f990daef353999a329ab0740308c Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 16 Oct 2022 20:53:00 +0300 Subject: [PATCH] vscode: do not include system include --- .vscode/c_cpp_properties.json | 5 ++++- include/printf.h | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index 3c76ec1..f03c3fd 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -33,7 +33,10 @@ "-pipe", "-mcmodel=kernel", "-msoft-float", - "-fno-builtin" + "-fno-builtin", + "-ffreestanding", + "-nostdinc", + "-nostdinc++" ] } ], diff --git a/include/printf.h b/include/printf.h index 9191a36..bc2a705 100644 --- a/include/printf.h +++ b/include/printf.h @@ -39,8 +39,7 @@ #ifndef PRINTF_H_ #define PRINTF_H_ -#include -#include +#include #ifdef __cplusplus extern "C"