sys/epoll: include-able from C++ files
Change-Id: Icc73be9de7a9217e33903243b0ecf1a9a596b381 Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
45a8de8fa0
commit
78005a4ba0
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue