From 16dc85417b04b4b4ffe8a5e151c35f6fc2fe286f Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Wed, 30 Sep 2020 12:08:45 -0700 Subject: [PATCH] fsutils:ipcfg Add extern 'C' under cpp --- include/fsutils/ipcfg.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/fsutils/ipcfg.h b/include/fsutils/ipcfg.h index e594871cc..5cbb140b7 100644 --- a/include/fsutils/ipcfg.h +++ b/include/fsutils/ipcfg.h @@ -92,6 +92,13 @@ struct ipcfg_s /**************************************************************************** * Public Function Prototypes ****************************************************************************/ +#ifdef __cplusplus +#define EXTERN extern "C" +extern "C" +{ +#else +#define EXTERN extern +#endif /**************************************************************************** * Name: ipcfg_read @@ -132,5 +139,9 @@ int ipcfg_read(FAR const char *netdev, FAR struct ipcfg_s *ipcfg); #ifdef CONFIG_IPCFG_WRITABLE int ipcfg_write(FAR const char *netdev, FAR const struct ipcfg_s *ipcfg); #endif +#undef EXTERN +#ifdef __cplusplus +} +#endif #endif /* __APPS_INCLUDE_FSUTILS_IPCFG_H */