Mercurial > hg > CbC > CbC_llvm
comparison clang/test/Sema/wchar.c @ 221:79ff65ed7e25
LLVM12 Original
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 15 Jun 2021 19:15:29 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
comparison
equal
deleted
inserted
replaced
220:42394fc6a535 | 221:79ff65ed7e25 |
---|---|
4 typedef __WCHAR_TYPE__ wchar_t; | 4 typedef __WCHAR_TYPE__ wchar_t; |
5 | 5 |
6 #if defined(_WIN32) || defined(_M_IX86) || defined(__CYGWIN__) \ | 6 #if defined(_WIN32) || defined(_M_IX86) || defined(__CYGWIN__) \ |
7 || defined(_M_X64) || defined(__ORBIS__) || defined(SHORT_WCHAR) | 7 || defined(_M_X64) || defined(__ORBIS__) || defined(SHORT_WCHAR) |
8 #define WCHAR_T_TYPE unsigned short | 8 #define WCHAR_T_TYPE unsigned short |
9 #elif defined(__arm) || defined(__aarch64__) | 9 #elif defined(__aarch64__) |
10 // See AArch64TargetInfo constructor -- unsigned on non-darwin non-OpenBSD non-NetBSD. | |
11 #if defined(__OpenBSD__) || defined(__APPLE__) || defined(__NetBSD__) | |
12 #define WCHAR_T_TYPE int | |
13 #else | |
14 #define WCHAR_T_TYPE unsigned int | |
15 #endif | |
16 #elif defined(__arm) || defined(__MVS__) | |
10 #define WCHAR_T_TYPE unsigned int | 17 #define WCHAR_T_TYPE unsigned int |
11 #elif defined(__sun) | 18 #elif defined(__sun) |
12 #if defined(__LP64__) | 19 #if defined(__LP64__) |
13 #define WCHAR_T_TYPE int | 20 #define WCHAR_T_TYPE int |
14 #else | 21 #else |
15 #define WCHAR_T_TYPE long | 22 #define WCHAR_T_TYPE long |
16 #endif | 23 #endif |
17 #else /* Solaris. */ | 24 #else /* Solaris, Linux, non-arm64 macOS, ... */ |
18 #define WCHAR_T_TYPE int | 25 #define WCHAR_T_TYPE int |
19 #endif | 26 #endif |
20 | 27 |
21 int check_wchar_size[sizeof(*L"") == sizeof(wchar_t) ? 1 : -1]; | 28 int check_wchar_size[sizeof(*L"") == sizeof(wchar_t) ? 1 : -1]; |
22 | 29 |