diff --git a/zephyr/include/rtos/string.h b/zephyr/include/rtos/string.h index 34fc857ac..eeff889e8 100644 --- a/zephyr/include/rtos/string.h +++ b/zephyr/include/rtos/string.h @@ -11,6 +11,9 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif /* missing from zephyr - TODO: convert to memset() */ #define bzero(ptr, size) \ memset(ptr, 0, size) @@ -60,4 +63,8 @@ static inline int memset_s(void *dest, size_t dest_size, int data, size_t count) return 0; } +#ifdef __cplusplus +} /* extern "C" */ +#endif + #endif /* __ZEPHYR_RTOS_STRING_H__ */