Chromium Code Reviews| Index: native_client_sdk/src/libraries/nacl_io/kernel_wrap.h |
| diff --git a/native_client_sdk/src/libraries/nacl_io/kernel_wrap.h b/native_client_sdk/src/libraries/nacl_io/kernel_wrap.h |
| index b60636717a7490e92cf35464fa999d889d176547..21609ff53f60b426a4f6d581c410ac07bc5b92e0 100644 |
| --- a/native_client_sdk/src/libraries/nacl_io/kernel_wrap.h |
| +++ b/native_client_sdk/src/libraries/nacl_io/kernel_wrap.h |
| @@ -18,6 +18,11 @@ |
| #include "nacl_io/osutime.h" |
| #include "sdk_util/macros.h" |
| +// Curently enable NaCl IO IRT Extension when using newlib |
| +#if defined(__native_client__) && !defined(__GLIBC__) && !defined(__BIONIC__) |
|
Sam Clegg
2014/09/30 20:49:03
You can check for _NEWLIB_VERSION I think
David Yen
2014/09/30 21:37:36
Done.
|
| +# define __NACL_IO_IRT_EXT__ 1 |
|
Sam Clegg
2014/09/30 20:49:03
Done use __ prefix and suffix. IIUC such macros
David Yen
2014/09/30 21:37:36
Done.
|
| +#endif |
| + |
| #if defined(__GLIBC__) |
| #include <sys/cdefs.h> |
| #define NOTHROW __THROW |