Add U_PF_NATIVE_CLIENT

NaCl has to be identified by '__native_client__'. Currently, we assume that
NaCl has a signature of Linux (e.g. __linux___), but that is not the case.

Add a new platform (U_PF_NATIVE_CLIENT) to platform.h and treat it as
Linux-based.

Upstream bug : http://bugs.icu-project.org/trac/ticket/11033

BUG=NONE
TEST=NaCl builds fine when ICU is rolled to this revision.
R=ncbray@chromium.org

Review URL: https://codereview.chromium.org/419013002

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/icu52@285387 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
diff --git a/README.chromium b/README.chromium
index 089f07e..1416586 100644
--- a/README.chromium
+++ b/README.chromium
@@ -31,6 +31,9 @@
     Upstream bug for QNX : http://bugs.icu-project.org/trac/ticket/10811
     Upstream bug for newlib : http://bugs.icu-project.org/trac/ticket/10873
 
+ - patches/platform_nacl.patch to add U_PF_NATIVE_CLIENT
+   Upstream bug : http://bugs.icu-project.org/trac/ticket/11033
+
 
 3. Breakiterator patches
 
diff --git a/source/common/unicode/platform.h b/source/common/unicode/platform.h
index 1b2ab30..4ca0f2f 100644
--- a/source/common/unicode/platform.h
+++ b/source/common/unicode/platform.h
@@ -121,8 +121,10 @@
 #define U_PF_QNX 3700
 /** Linux is a Unix-like operating system. @internal */
 #define U_PF_LINUX 4000
+/** Native Client is pretty close to Linux. @internal */
+#define U_PF_NATIVE_CLIENT 4050
 /** Android is based on Linux. @internal */
-#define U_PF_ANDROID 4050
+#define U_PF_ANDROID 4100
 /** "Classic" Mac OS (1984-2001) @internal */
 #define U_PF_CLASSIC_MACOS 8000
 /** z/OS is the successor to OS/390 which was the successor to MVS. @internal */
@@ -142,6 +144,8 @@
 #   define U_PLATFORM U_PF_ANDROID
     /* Android wchar_t support depends on the API level. */
 #   include <android/api-level.h>
+#elif defined(__native_client__)
+#   define U_PLATFORM U_PF_NATIVE_CLIENT
 #elif defined(linux) || defined(__linux__) || defined(__linux)
 #   define U_PLATFORM U_PF_LINUX
 #elif defined(__APPLE__) && defined(__MACH__)