diff options
Diffstat (limited to 'include/rttypes.h')
| -rw-r--r-- | include/rttypes.h | 8 |
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__ */ |
