sys/uio: include-able from C++ files
Change-Id: I4b512851fa96e1d696dbc886b25af4ab043da8dd Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
06d93828af
commit
176d850445
@ -58,6 +58,15 @@ struct iovec
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
#define EXTERN extern "C"
|
||||
extern "C"
|
||||
{
|
||||
#else
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: readv()
|
||||
*
|
||||
@ -138,4 +147,9 @@ ssize_t readv(int fildes, FAR const struct iovec *iov, int iovcnt);
|
||||
|
||||
ssize_t writev(int fildes, FAR const struct iovec *iov, int iovcnt);
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __INCLUDE_SYS_UIO_H */
|
||||
|
Loading…
x
Reference in New Issue
Block a user