summaryrefslogtreecommitdiff
path: root/include/rttypes.h
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2024-03-10 13:39:20 -0400
committerMeco Man <[email protected]>2024-03-20 22:26:11 -0400
commite81978c5dc5ff75257b64da3f9ab0d9a75475ddb (patch)
treef4ea76515f94aeec80c52374abf6c22a9ba62b20 /include/rttypes.h
parente25f287ff30f7bcf3fd8a30cba6c56ae86504c83 (diff)
[kernel] move std libc related to rtklibc.h
Diffstat (limited to 'include/rttypes.h')
-rw-r--r--include/rttypes.h8
1 files changed, 8 insertions, 0 deletions
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__ */