sys/epoll: include-able from C++ files

Change-Id: Icc73be9de7a9217e33903243b0ecf1a9a596b381
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2020-09-17 15:32:53 +08:00 committed by Xiang Xiao
parent 45a8de8fa0
commit 78005a4ba0
1 changed files with 18 additions and 0 deletions

View File

@ -99,6 +99,19 @@ struct epoll_event
epoll_data_t data;
};
/****************************************************************************
* Public Data
****************************************************************************/
#undef EXTERN
#if defined(__cplusplus)
#define EXTERN extern "C"
extern "C"
{
#else
#define EXTERN extern
#endif
/****************************************************************************
* Public Function Prototypes
****************************************************************************/
@ -113,4 +126,9 @@ int epoll_pwait(int epfd, FAR struct epoll_event *evs,
void epoll_close(int epfd);
#undef EXTERN
#if defined(__cplusplus)
}
#endif
#endif /* __INCLUDE_SYS_EPOLL_H */