diff --git a/c/src/libchip/serial/serial.h b/c/src/libchip/serial/serial.h index 3630cb81b0..eee3781779 100644 --- a/c/src/libchip/serial/serial.h +++ b/c/src/libchip/serial/serial.h @@ -20,6 +20,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + /* * Types for get and set register routines */ @@ -149,5 +153,8 @@ extern console_tbl Console_Port_Tbl[]; extern console_data Console_Port_Data[]; extern unsigned long Console_Port_Count; +#ifdef __cplusplus +} +#endif + #endif -/* end of include file */