OLD | NEW |
1 // © 2016 and later: Unicode, Inc. and others. | 1 // © 2016 and later: Unicode, Inc. and others. |
2 // License & terms of use: http://www.unicode.org/copyright.html | 2 // License & terms of use: http://www.unicode.org/copyright.html |
3 /* | 3 /* |
4 ****************************************************************************** | 4 ****************************************************************************** |
5 * | 5 * |
6 * Copyright (C) 1997-2016, International Business Machines | 6 * Copyright (C) 1997-2016, International Business Machines |
7 * Corporation and others. All Rights Reserved. | 7 * Corporation and others. All Rights Reserved. |
8 * | 8 * |
9 ****************************************************************************** | 9 ****************************************************************************** |
10 * | 10 * |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 #define U_PF_LINUX 4000 | 125 #define U_PF_LINUX 4000 |
126 /** | 126 /** |
127 * Native Client is pretty close to Linux. | 127 * Native Client is pretty close to Linux. |
128 * See https://developer.chrome.com/native-client and | 128 * See https://developer.chrome.com/native-client and |
129 * http://www.chromium.org/nativeclient | 129 * http://www.chromium.org/nativeclient |
130 * @internal | 130 * @internal |
131 */ | 131 */ |
132 #define U_PF_BROWSER_NATIVE_CLIENT 4020 | 132 #define U_PF_BROWSER_NATIVE_CLIENT 4020 |
133 /** Android is based on Linux. @internal */ | 133 /** Android is based on Linux. @internal */ |
134 #define U_PF_ANDROID 4050 | 134 #define U_PF_ANDROID 4050 |
| 135 /** Fuchsia is a POSIX-ish platform. @internal */ |
| 136 #define U_PF_FUCHSIA 4100 |
135 /* Maximum value for Linux-based platform is 4499 */ | 137 /* Maximum value for Linux-based platform is 4499 */ |
136 /** z/OS is the successor to OS/390 which was the successor to MVS. @internal */ | 138 /** z/OS is the successor to OS/390 which was the successor to MVS. @internal */ |
137 #define U_PF_OS390 9000 | 139 #define U_PF_OS390 9000 |
138 /** "IBM i" is the current name of what used to be i5/OS and earlier OS/400. @in
ternal */ | 140 /** "IBM i" is the current name of what used to be i5/OS and earlier OS/400. @in
ternal */ |
139 #define U_PF_OS400 9400 | 141 #define U_PF_OS400 9400 |
140 | 142 |
141 #ifdef U_PLATFORM | 143 #ifdef U_PLATFORM |
142 /* Use the predefined value. */ | 144 /* Use the predefined value. */ |
143 #elif defined(__MINGW32__) | 145 #elif defined(__MINGW32__) |
144 # define U_PLATFORM U_PF_MINGW | 146 # define U_PLATFORM U_PF_MINGW |
145 #elif defined(__CYGWIN__) | 147 #elif defined(__CYGWIN__) |
146 # define U_PLATFORM U_PF_CYGWIN | 148 # define U_PLATFORM U_PF_CYGWIN |
147 #elif defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) | 149 #elif defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) |
148 # define U_PLATFORM U_PF_WINDOWS | 150 # define U_PLATFORM U_PF_WINDOWS |
149 #elif defined(__ANDROID__) | 151 #elif defined(__ANDROID__) |
150 # define U_PLATFORM U_PF_ANDROID | 152 # define U_PLATFORM U_PF_ANDROID |
151 /* Android wchar_t support depends on the API level. */ | 153 /* Android wchar_t support depends on the API level. */ |
152 # include <android/api-level.h> | 154 # include <android/api-level.h> |
153 #elif defined(__pnacl__) || defined(__native_client__) | 155 #elif defined(__pnacl__) || defined(__native_client__) |
154 # define U_PLATFORM U_PF_BROWSER_NATIVE_CLIENT | 156 # define U_PLATFORM U_PF_BROWSER_NATIVE_CLIENT |
| 157 #elif defined(__Fuchsia__) |
| 158 # define U_PLATFORM U_PF_FUCHSIA |
155 #elif defined(linux) || defined(__linux__) || defined(__linux) | 159 #elif defined(linux) || defined(__linux__) || defined(__linux) |
156 # define U_PLATFORM U_PF_LINUX | 160 # define U_PLATFORM U_PF_LINUX |
157 #elif defined(__APPLE__) && defined(__MACH__) | 161 #elif defined(__APPLE__) && defined(__MACH__) |
158 # include <TargetConditionals.h> | 162 # include <TargetConditionals.h> |
159 # if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE /* variant of TARGET_OS_MA
C */ | 163 # if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE /* variant of TARGET_OS_MA
C */ |
160 # define U_PLATFORM U_PF_IPHONE | 164 # define U_PLATFORM U_PF_IPHONE |
161 # else | 165 # else |
162 # define U_PLATFORM U_PF_DARWIN | 166 # define U_PLATFORM U_PF_DARWIN |
163 # endif | 167 # endif |
164 #elif defined(BSD) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || def
ined(__NetBSD__) || defined(__OpenBSD__) || defined(__MirBSD__) | 168 #elif defined(BSD) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || def
ined(__NetBSD__) || defined(__OpenBSD__) || defined(__MirBSD__) |
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
867 */ | 871 */ |
868 #if U_PLATFORM == U_PF_OS390 && defined(__cplusplus) | 872 #if U_PLATFORM == U_PF_OS390 && defined(__cplusplus) |
869 # define U_CALLCONV __cdecl | 873 # define U_CALLCONV __cdecl |
870 #else | 874 #else |
871 # define U_CALLCONV U_EXPORT2 | 875 # define U_CALLCONV U_EXPORT2 |
872 #endif | 876 #endif |
873 | 877 |
874 /* @} */ | 878 /* @} */ |
875 | 879 |
876 #endif | 880 #endif |
OLD | NEW |