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

Unified Diff: patches/platform.qnx.patch

Issue 141063008: Add support for QNX Neutrino. Base URL: https://chromium.googlesource.com/chromium/deps/icu46.git@master
Patch Set: Undo change to _XOPEN_SOURCE_EXTENDED Created 6 years, 10 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
« no previous file with comments | « icu.gyp ('k') | patches/si_value.undef.patch » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: patches/platform.qnx.patch
diff --git a/patches/platform.qnx.patch b/patches/platform.qnx.patch
new file mode 100644
index 0000000000000000000000000000000000000000..2fdb79ad2ced4b66dd181e7ad7d6d028527847a5
--- /dev/null
+++ b/patches/platform.qnx.patch
@@ -0,0 +1,35 @@
+diff --git a/source/common/unicode/pandroid.h b/source/common/unicode/pqnx.h
+--- a/source/common/unicode/pandroid.h
++++ b/source/common/unicode/pqnx.h
+@@ -45,8 +45,8 @@
+ #ifndef CYGWINMSVC
+
+ /** Define the platform we're on. */
+-#ifndef U_LINUX
+-#define U_LINUX
++#ifndef U_QNX
++#define U_QNX
+ #endif
+
+ /**
+@@ -331,7 +331,7 @@
+ # ifdef __cplusplus
+ # define U_INLINE inline
+ # else
+-# define U_INLINE inline
++# define U_INLINE __inline__
+ # endif
+ #endif
+
+diff --git a/source/common/unicode/ptypes.h b/source/common/unicode/ptypes.h
+--- a/source/common/unicode/ptypes.h
++++ b/source/common/unicode/ptypes.h
+@@ -34,6 +34,8 @@
+ # include "unicode/pfreebsd.h"
+ #elif defined(__OpenBSD__)
+ # include "unicode/popenbsd.h"
++#elif defined(__QNXNTO__)
++# include "unicode/pqnx.h"
+ #else
+ # include "unicode/platform.h"
+ #endif
« no previous file with comments | « icu.gyp ('k') | patches/si_value.undef.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698