e99e185712
wchar_t is a builtin type in C++. clang complains like the following even with -fshort-wchar: error: cannot combine with previous 'type-name' declaration specifier my clang version if it matters: spacetanuki% clang++ --version Apple clang version 11.0.0 (clang-1100.0.33.17) Target: x86_64-apple-darwin18.7.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin spacetanuki% clang++ -dM -E - < /dev/null | grep WCHAR #define __CLANG_ATOMIC_WCHAR_T_LOCK_FREE 2 #define __GCC_ATOMIC_WCHAR_T_LOCK_FREE 2 #define __SIZEOF_WCHAR_T__ 4 #define __WCHAR_MAX__ 2147483647 #define __WCHAR_TYPE__ int #define __WCHAR_WIDTH__ 32 spacetanuki% clang++ -fshort-wchar -dM -E - < /dev/null | grep WCHAR #define __CLANG_ATOMIC_WCHAR_T_LOCK_FREE 2 #define __GCC_ATOMIC_WCHAR_T_LOCK_FREE 2 #define __SIZEOF_WCHAR_T__ 2 #define __WCHAR_MAX__ 65535 #define __WCHAR_TYPE__ unsigned short #define __WCHAR_UNSIGNED__ 1 #define __WCHAR_WIDTH__ 16 spacetanuki% |
||
---|---|---|
.. | ||
arpa | ||
cxx | ||
net | ||
netinet | ||
netpacket | ||
nuttx | ||
sys | ||
.gitignore | ||
aio.h | ||
alloca.h | ||
assert.h | ||
crc8.h | ||
crc16.h | ||
crc32.h | ||
crc64.h | ||
ctype.h | ||
debug.h | ||
dirent.h | ||
dlfcn.h | ||
dsp.h | ||
elf32.h | ||
elf64.h | ||
elf.h | ||
endian.h | ||
errno.h | ||
fcntl.h | ||
fixedmath.h | ||
ftw.h | ||
grp.h | ||
hex2bin.h | ||
inttypes.h | ||
libgen.h | ||
limits.h | ||
locale.h | ||
lzf.h | ||
malloc.h | ||
mqueue.h | ||
netdb.h | ||
nxflat.h | ||
poll.h | ||
pthread.h | ||
pwd.h | ||
queue.h | ||
sched.h | ||
semaphore.h | ||
signal.h | ||
spawn.h | ||
stdbool.h | ||
stddef.h | ||
stdint.h | ||
stdio.h | ||
stdlib.h | ||
stdnoreturn.h | ||
string.h | ||
strings.h | ||
syscall.h | ||
syslog.h | ||
termios.h | ||
threads.h | ||
time.h | ||
unistd.h | ||
uuid.h | ||
wchar.h | ||
wctype.h |