From 54a8d08cc8dde0f16185811458c616b9c1b40dd0 Mon Sep 17 00:00:00 2001 From: x_xiny <1301913191@qq.com> Date: Tue, 22 Jun 2021 11:02:39 +0800 Subject: [PATCH] =?UTF-8?q?=20feat:=20arm=20none=20eabi=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E5=99=A8=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 【背景】 arm none eabi编译器适配 【修改方案】 增加编译宏 re #I3WVXZ Signed-off-by: x_xiny <1301913191@qq.com> Change-Id: I834395ba5aeb0a4caeb642ac2fbf4553c30ac3f0 Change-Id: Ifffd2b7fb3319e8b4a243acdc973e1a36a357e5d Change-Id: Iefdfdeb5c42c623289185725c2c7e5d64da1159c --- porting/liteos_m/kernel/include/stdlib.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/porting/liteos_m/kernel/include/stdlib.h b/porting/liteos_m/kernel/include/stdlib.h index d292fb0a..9c9b76ca 100644 --- a/porting/liteos_m/kernel/include/stdlib.h +++ b/porting/liteos_m/kernel/include/stdlib.h @@ -63,6 +63,7 @@ int abs (int); long labs (long); long long llabs (long long); +#ifndef ARM_NONE_EABI typedef struct { int quot, rem; } div_t; typedef struct { long quot, rem; } ldiv_t; typedef struct { long long quot, rem; } lldiv_t; @@ -70,6 +71,7 @@ typedef struct { long long quot, rem; } lldiv_t; div_t div (int, int); ldiv_t ldiv (long, long); lldiv_t lldiv (long long, long long); +#endif int mblen (const char *, size_t); int mbtowc (wchar_t *__restrict, const char *__restrict, size_t); -- GitLab