X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/522c91c2baad8d9575ba62d48487800e1e0e7203..25967c79a7c6f91ccdaa982a6c3e0d9c12f90412:/test/getcwidth.c diff --git a/test/getcwidth.c b/test/getcwidth.c index a6c7391c..165f12ab 100644 --- a/test/getcwidth.c +++ b/test/getcwidth.c @@ -1,5 +1,4 @@ -/* - * getcwidth - Get the OS's idea of the width of Unicode codepoints +/* getcwidth - Get the OS's idea of the width of Unicode codepoints * * This code is Copyright (c) 2013, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for @@ -164,9 +163,9 @@ typedef struct { static unicode_range range[] = { /* https://en.wikipedia.org/wiki/Unicode#Code_point_planes_and_blocks */ { L'\x0000', L'\xff' }, -#if __WCHAR_MAX__ >= 0xffff +#if WCHAR_MAX >= 0xffff { L'\x0100', L'\xffff' }, -#if __WCHAR_MAX__ >= 0xfffff +#if WCHAR_MAX >= 0xfffff { L'\x10000', L'\x14fff' }, { L'\x16000', L'\x18fff' }, { L'\x1b000', L'\x1bfff' },