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

Unified Diff: patches/fuchsia.patch

Issue 2885143008: icu: Add defines for Fuchsia (Closed)
Patch Set: Created 3 years, 7 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 | « README.chromium ('k') | source/common/unicode/platform.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: patches/fuchsia.patch
diff --git a/patches/fuchsia.patch b/patches/fuchsia.patch
new file mode 100644
index 0000000000000000000000000000000000000000..dc3f86be1eac08c02360869bda365c00bb3ced13
--- /dev/null
+++ b/patches/fuchsia.patch
@@ -0,0 +1,22 @@
+diff --git a/source/common/unicode/platform.h b/source/common/unicode/platform.h
+index 057182d..5e46903 100644
+--- a/source/common/unicode/platform.h
++++ b/source/common/unicode/platform.h
+@@ -132,6 +132,8 @@
+ #define U_PF_BROWSER_NATIVE_CLIENT 4020
+ /** Android is based on Linux. @internal */
+ #define U_PF_ANDROID 4050
++/** Fuchsia is a POSIX-ish platform. @internal */
jungshik at Google 2017/05/18 00:19:35 Glad to know that. :-) I was wondering about Fuch
++#define U_PF_FUCHSIA 4100
+ /* Maximum value for Linux-based platform is 4499 */
+ /** z/OS is the successor to OS/390 which was the successor to MVS. @internal */
+ #define U_PF_OS390 9000
+@@ -152,6 +154,8 @@
+ # include <android/api-level.h>
+ #elif defined(__pnacl__) || defined(__native_client__)
+ # define U_PLATFORM U_PF_BROWSER_NATIVE_CLIENT
++#elif defined(__Fuchsia__)
++# define U_PLATFORM U_PF_FUCHSIA
+ #elif defined(linux) || defined(__linux__) || defined(__linux)
+ # define U_PLATFORM U_PF_LINUX
+ #elif defined(__APPLE__) && defined(__MACH__)
« no previous file with comments | « README.chromium ('k') | source/common/unicode/platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698