On Cygwin, wchar_t was correct on a native build but with these patches it's also when used via cgcc. Luc Van Oostenryck (3): arch: keep cygwin specifics with i386/x86-64 specifics arch: teach sparse about -fshort-wchar cgcc: let cygwin use -fshort-wchar cgcc | 1 + lib.c | 2 ++ lib.h | 1 + target.c | 9 +++++---- validation/arch/short-wchar.c | 6 ++++++ 5 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 validation/arch/short-wchar.c -- 2.24.0