mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug TW-278
- Cygwin throws warnings building mk_wcwidth() in wcwidth6.c.
This commit is contained in:
parent
5f4a5bdec7
commit
b7760dc3ef
2 changed files with 7 additions and 1 deletions
|
@ -59,6 +59,7 @@
|
|||
* Latest version: http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c
|
||||
*/
|
||||
|
||||
#include <cmake.h>
|
||||
#include <wchar.h>
|
||||
|
||||
struct interval {
|
||||
|
@ -229,8 +230,12 @@ int mk_wcwidth(wchar_t ucs)
|
|||
(ucs >= 0xfe30 && ucs <= 0xfe6f) || /* CJK Compatibility Forms */
|
||||
(ucs >= 0xff00 && ucs <= 0xff60) || /* Fullwidth Forms */
|
||||
(ucs >= 0xffe0 && ucs <= 0xffe6) ||
|
||||
#ifndef CYGWIN
|
||||
(ucs >= 0x20000 && ucs <= 0x2fffd) ||
|
||||
(ucs >= 0x30000 && ucs <= 0x3fffd)));
|
||||
(ucs >= 0x30000 && ucs <= 0x3fffd)
|
||||
#endif
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
int mk_wcswidth(const wchar_t *pwcs, size_t n)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue