fsutils:ipcfg Add extern 'C' under cpp
This commit is contained in:
parent
39a1950098
commit
16dc85417b
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user