Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(486)

Unified Diff: native_client_sdk/src/libraries/nacl_io/kernel_wrap.h

Issue 608913003: Added support for NaCl IO to use the IRT Extension API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed assert checks to a macro Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698