Commit f5bace13 authored by sbc's avatar sbc Committed by Commit bot

[NaCl SDK] nacl_io: use standard __BEGIN/__END_DECLS in poll.h

In case this header is included without sdk_util headers
being available (as can happen in naclports).

Review URL: https://codereview.chromium.org/596133002

Cr-Commit-Position: refs/heads/master@{#296525}
parent c856b9bf
......@@ -6,10 +6,7 @@
#define LIBRARIES_NACL_IO_INCLUDE_SYS_POLL_H_
#include <stdint.h>
#include "sdk_util/macros.h"
EXTERN_C_BEGIN
#include <sys/cdefs.h>
/* This header adds definitions of flags and structures for use with poll on
* toolchains with 'C' libraries which do not normally supply poll. */
......@@ -31,8 +28,10 @@ struct pollfd {
uint16_t revents;
};
__BEGIN_DECLS
int poll(struct pollfd* __fds, nfds_t __nfds, int __timeout);
EXTERN_C_END
__END_DECLS
#endif /* LIBRARIES_NACL_IO_INCLUDE_SYS_POLL_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment