OLD | NEW |
1 /* | 1 /* |
2 ****************************************************************************** | 2 ****************************************************************************** |
3 * | 3 * |
4 * Copyright (C) 1997-2014, International Business Machines | 4 * Copyright (C) 1997-2014, International Business Machines |
5 * Corporation and others. All Rights Reserved. | 5 * Corporation and others. All Rights Reserved. |
6 * | 6 * |
7 ****************************************************************************** | 7 ****************************************************************************** |
8 * | 8 * |
9 * FILE NAME : platform.h | 9 * FILE NAME : platform.h |
10 * | 10 * |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 * (Original description modified from WikiPedia.) | 114 * (Original description modified from WikiPedia.) |
115 * @internal | 115 * @internal |
116 */ | 116 */ |
117 #define U_PF_DARWIN 3500 | 117 #define U_PF_DARWIN 3500 |
118 /** iPhone OS (iOS) is a derivative of Mac OS X. @internal */ | 118 /** iPhone OS (iOS) is a derivative of Mac OS X. @internal */ |
119 #define U_PF_IPHONE 3550 | 119 #define U_PF_IPHONE 3550 |
120 /** QNX is a commercial Unix-like real-time operating system related to BSD. @in
ternal */ | 120 /** QNX is a commercial Unix-like real-time operating system related to BSD. @in
ternal */ |
121 #define U_PF_QNX 3700 | 121 #define U_PF_QNX 3700 |
122 /** Linux is a Unix-like operating system. @internal */ | 122 /** Linux is a Unix-like operating system. @internal */ |
123 #define U_PF_LINUX 4000 | 123 #define U_PF_LINUX 4000 |
| 124 /** Native Client is pretty close to Linux. @internal */ |
| 125 #define U_PF_NATIVE_CLIENT 4050 |
124 /** Android is based on Linux. @internal */ | 126 /** Android is based on Linux. @internal */ |
125 #define U_PF_ANDROID 4050 | 127 #define U_PF_ANDROID 4100 |
126 /** z/OS is the successor to OS/390 which was the successor to MVS. @internal */ | 128 /** z/OS is the successor to OS/390 which was the successor to MVS. @internal */ |
127 #define U_PF_OS390 9000 | 129 #define U_PF_OS390 9000 |
128 /** "IBM i" is the current name of what used to be i5/OS and earlier OS/400. @in
ternal */ | 130 /** "IBM i" is the current name of what used to be i5/OS and earlier OS/400. @in
ternal */ |
129 #define U_PF_OS400 9400 | 131 #define U_PF_OS400 9400 |
130 | 132 |
131 #ifdef U_PLATFORM | 133 #ifdef U_PLATFORM |
132 /* Use the predefined value. */ | 134 /* Use the predefined value. */ |
133 #elif defined(__MINGW32__) | 135 #elif defined(__MINGW32__) |
134 # define U_PLATFORM U_PF_MINGW | 136 # define U_PLATFORM U_PF_MINGW |
135 #elif defined(__CYGWIN__) | 137 #elif defined(__CYGWIN__) |
136 # define U_PLATFORM U_PF_CYGWIN | 138 # define U_PLATFORM U_PF_CYGWIN |
137 #elif defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) | 139 #elif defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) |
138 # define U_PLATFORM U_PF_WINDOWS | 140 # define U_PLATFORM U_PF_WINDOWS |
139 #elif defined(__ANDROID__) | 141 #elif defined(__ANDROID__) |
140 # define U_PLATFORM U_PF_ANDROID | 142 # define U_PLATFORM U_PF_ANDROID |
141 /* Android wchar_t support depends on the API level. */ | 143 /* Android wchar_t support depends on the API level. */ |
142 # include <android/api-level.h> | 144 # include <android/api-level.h> |
| 145 #elif defined(__native_client__) |
| 146 # define U_PLATFORM U_PF_NATIVE_CLIENT |
143 #elif defined(linux) || defined(__linux__) || defined(__linux) | 147 #elif defined(linux) || defined(__linux__) || defined(__linux) |
144 # define U_PLATFORM U_PF_LINUX | 148 # define U_PLATFORM U_PF_LINUX |
145 #elif defined(__APPLE__) && defined(__MACH__) | 149 #elif defined(__APPLE__) && defined(__MACH__) |
146 # include <TargetConditionals.h> | 150 # include <TargetConditionals.h> |
147 # if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE /* variant of TARGET_OS_MA
C */ | 151 # if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE /* variant of TARGET_OS_MA
C */ |
148 # define U_PLATFORM U_PF_IPHONE | 152 # define U_PLATFORM U_PF_IPHONE |
149 # else | 153 # else |
150 # define U_PLATFORM U_PF_DARWIN | 154 # define U_PLATFORM U_PF_DARWIN |
151 # endif | 155 # endif |
152 #elif defined(BSD) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || def
ined(__NetBSD__) || defined(__OpenBSD__) || defined(__MirBSD__) | 156 #elif defined(BSD) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || def
ined(__NetBSD__) || defined(__OpenBSD__) || defined(__MirBSD__) |
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 */ | 746 */ |
743 #if U_PLATFORM == U_PF_OS390 && defined(__cplusplus) | 747 #if U_PLATFORM == U_PF_OS390 && defined(__cplusplus) |
744 # define U_CALLCONV __cdecl | 748 # define U_CALLCONV __cdecl |
745 #else | 749 #else |
746 # define U_CALLCONV U_EXPORT2 | 750 # define U_CALLCONV U_EXPORT2 |
747 #endif | 751 #endif |
748 | 752 |
749 /* @} */ | 753 /* @} */ |
750 | 754 |
751 #endif | 755 #endif |
OLD | NEW |