diff --git a/nshlib/nsh.h b/nshlib/nsh.h index bac0c7929..e2659310c 100644 --- a/nshlib/nsh.h +++ b/nshlib/nsh.h @@ -799,6 +799,11 @@ extern const char g_fmtsignalrecvd[]; * Public Function Prototypes ****************************************************************************/ +#if defined(__cplusplus) +extern "C" +{ +#endif + /* Initialization */ #ifdef CONFIG_NSH_ROMFSETC @@ -1403,4 +1408,8 @@ int nsh_foreach_var(FAR struct nsh_vtbl_s *vtbl, nsh_foreach_var_t cb, FAR void *arg); #endif +#if defined(__cplusplus) +} +#endif + #endif /* __APPS_NSHLIB_NSH_H */