swift
d61b8855 - stdlib: map `wchar_t` to `UInt16` on Windows

Commit
2 years ago
stdlib: map `wchar_t` to `UInt16` on Windows This is an ABI breaking change for Windows. `WCHAR` on Windows is mapped to `short` (`-fshort-wchar` makes it `unsigned short`). When C++ interop is enabled, `WCHAR` will be mapped to `wchar_t` which is then mapped to `short` (or `unsigned short` if `-fshort-wchar` is specified). Correct the mapping type to get the desired behaviour.
Author
Parents
Loading