diff options
author | sbc <sbc@chromium.org> | 2014-09-24 14:30:01 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-24 21:30:14 +0000 |
commit | f5bace135f1ff2fa3a68bc3262e55f6b9e71db53 (patch) | |
tree | 95859df47e84deb2fe84979aea14b74fbac15b5b /native_client_sdk | |
parent | c856b9bf12c634b7b5f2879761fb8a63cc5f0822 (diff) | |
download | chromium_src-f5bace135f1ff2fa3a68bc3262e55f6b9e71db53.zip chromium_src-f5bace135f1ff2fa3a68bc3262e55f6b9e71db53.tar.gz chromium_src-f5bace135f1ff2fa3a68bc3262e55f6b9e71db53.tar.bz2 |
[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}
Diffstat (limited to 'native_client_sdk')
-rw-r--r-- | native_client_sdk/src/libraries/nacl_io/include/sys/poll.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/native_client_sdk/src/libraries/nacl_io/include/sys/poll.h b/native_client_sdk/src/libraries/nacl_io/include/sys/poll.h index d09eb59..d116253 100644 --- a/native_client_sdk/src/libraries/nacl_io/include/sys/poll.h +++ b/native_client_sdk/src/libraries/nacl_io/include/sys/poll.h @@ -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_ */ |