fsutils:ipcfg Add extern 'C' under cpp

This commit is contained in:
David Sidrane 2020-09-30 12:08:45 -07:00 committed by patacongo
parent 39a1950098
commit 16dc85417b

View File

@ -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 */