| OLD | NEW |
| 1 /* | 1 /* |
| 2 ****************************************************************************** | 2 ****************************************************************************** |
| 3 * | 3 * |
| 4 * Copyright (C) 1997-2013, International Business Machines | 4 * Copyright (C) 1997-2013, 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 /** "Classic" Mac OS (1984-2001) @internal */ | 128 /** "Classic" Mac OS (1984-2001) @internal */ |
| 127 #define U_PF_CLASSIC_MACOS 8000 | 129 #define U_PF_CLASSIC_MACOS 8000 |
| 128 /** z/OS is the successor to OS/390 which was the successor to MVS. @internal */ | 130 /** z/OS is the successor to OS/390 which was the successor to MVS. @internal */ |
| 129 #define U_PF_OS390 9000 | 131 #define U_PF_OS390 9000 |
| 130 /** "IBM i" is the current name of what used to be i5/OS and earlier OS/400. @in
ternal */ | 132 /** "IBM i" is the current name of what used to be i5/OS and earlier OS/400. @in
ternal */ |
| 131 #define U_PF_OS400 9400 | 133 #define U_PF_OS400 9400 |
| 132 | 134 |
| 133 #ifdef U_PLATFORM | 135 #ifdef U_PLATFORM |
| 134 /* Use the predefined value. */ | 136 /* Use the predefined value. */ |
| 135 #elif defined(__MINGW32__) | 137 #elif defined(__MINGW32__) |
| 136 # define U_PLATFORM U_PF_MINGW | 138 # define U_PLATFORM U_PF_MINGW |
| 137 #elif defined(__CYGWIN__) | 139 #elif defined(__CYGWIN__) |
| 138 # define U_PLATFORM U_PF_CYGWIN | 140 # define U_PLATFORM U_PF_CYGWIN |
| 139 #elif defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) | 141 #elif defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) |
| 140 # define U_PLATFORM U_PF_WINDOWS | 142 # define U_PLATFORM U_PF_WINDOWS |
| 141 #elif defined(__ANDROID__) | 143 #elif defined(__ANDROID__) |
| 142 # define U_PLATFORM U_PF_ANDROID | 144 # define U_PLATFORM U_PF_ANDROID |
| 143 /* Android wchar_t support depends on the API level. */ | 145 /* Android wchar_t support depends on the API level. */ |
| 144 # include <android/api-level.h> | 146 # include <android/api-level.h> |
| 147 #elif defined(__native_client__) |
| 148 # define U_PLATFORM U_PF_NATIVE_CLIENT |
| 145 #elif defined(linux) || defined(__linux__) || defined(__linux) | 149 #elif defined(linux) || defined(__linux__) || defined(__linux) |
| 146 # define U_PLATFORM U_PF_LINUX | 150 # define U_PLATFORM U_PF_LINUX |
| 147 #elif defined(__APPLE__) && defined(__MACH__) | 151 #elif defined(__APPLE__) && defined(__MACH__) |
| 148 # include <TargetConditionals.h> | 152 # include <TargetConditionals.h> |
| 149 # if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE /* variant of TARGET_OS_MA
C */ | 153 # if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE /* variant of TARGET_OS_MA
C */ |
| 150 # define U_PLATFORM U_PF_IPHONE | 154 # define U_PLATFORM U_PF_IPHONE |
| 151 # else | 155 # else |
| 152 # define U_PLATFORM U_PF_DARWIN | 156 # define U_PLATFORM U_PF_DARWIN |
| 153 # endif | 157 # endif |
| 154 #elif defined(BSD) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || def
ined(__NetBSD__) || defined(__OpenBSD__) || defined(__MirBSD__) | 158 #elif defined(BSD) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || def
ined(__NetBSD__) || defined(__OpenBSD__) || defined(__MirBSD__) |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 746 */ | 750 */ |
| 747 #if U_PLATFORM == U_PF_OS390 && defined(__cplusplus) | 751 #if U_PLATFORM == U_PF_OS390 && defined(__cplusplus) |
| 748 # define U_CALLCONV __cdecl | 752 # define U_CALLCONV __cdecl |
| 749 #else | 753 #else |
| 750 # define U_CALLCONV U_EXPORT2 | 754 # define U_CALLCONV U_EXPORT2 |
| 751 #endif | 755 #endif |
| 752 | 756 |
| 753 /* @} */ | 757 /* @} */ |
| 754 | 758 |
| 755 #endif | 759 #endif |
| OLD | NEW |