mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
fsutils:ipcfg Add extern 'C' under cpp
This commit is contained in:
parent
39a1950098
commit
16dc85417b
1 changed files with 11 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue