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

Unified Diff: patches/platform.qnx.patch

Issue 195973005: Add support for QNX Neutrino. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/icu46/
Patch Set: Created 6 years, 9 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: patches/platform.qnx.patch
===================================================================
--- patches/platform.qnx.patch (revision 0)
+++ patches/platform.qnx.patch (revision 0)
@@ -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
Property changes on: patches/platform.qnx.patch
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698