From e81978c5dc5ff75257b64da3f9ab0d9a75475ddb Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Sun, 10 Mar 2024 13:39:20 -0400 Subject: [kernel] move std libc related to rtklibc.h --- include/rttypes.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/rttypes.h') diff --git a/include/rttypes.h b/include/rttypes.h index c9b172208d..9e21ba3170 100644 --- a/include/rttypes.h +++ b/include/rttypes.h @@ -24,6 +24,10 @@ #endif /* defined(RT_USING_SIGNALS) || defined(RT_USING_SMART) */ #endif /* RT_USING_NANO */ +#ifdef __cplusplus +extern "C" { +#endif + /** * RT-Thread basic data types definition */ @@ -220,4 +224,8 @@ typedef struct rt_spinlock rt_spinlock_t; #define RT_DEFINE_SPINLOCK(x) struct rt_spinlock x = RT_SPINLOCK_INIT +#ifdef __cplusplus +} +#endif + #endif /* __RT_TYPES_H__ */ -- cgit v1.3.1