From 1f4c0995bf338807c60712d5c581499a1b09bd40 Mon Sep 17 00:00:00 2001 From: Zihao Yu Date: Wed, 24 May 2023 12:28:37 +0800 Subject: [PATCH] components,libc,compilers,common,ctime: fix compile error * `__isleap` is defined as a macro in glibc --- components/libc/compilers/common/ctime.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/libc/compilers/common/ctime.c b/components/libc/compilers/common/ctime.c index b6d6135..80f1c27 100644 --- a/components/libc/compilers/common/ctime.c +++ b/components/libc/compilers/common/ctime.c @@ -40,6 +40,8 @@ #define DBG_LVL DBG_INFO #include +#undef __isleap + #define _WARNING_NO_RTC "Cannot find a RTC device!" /* seconds per day */