diff --git a/include/notcurses/ncport.h b/include/notcurses/ncport.h index fcf1c7ab8..787a8fa45 100644 --- a/include/notcurses/ncport.h +++ b/include/notcurses/ncport.h @@ -23,13 +23,15 @@ extern "C" { #include #define htole(x) (OSSwapInt32(htonl(x))) #elif defined(__gnu_hurd__) // Hurd +#include #include #define htole(x) (__bswap_32(htonl(x))) -#define wcwidth(w) 1 // FIXME lol, no -#define wcswidth(w, s) (s) // FIXME lol, no +#define wcwidth(w) 1 // FIXME lol, no +#define wcswidth(w, s) (wcslen(w)) // FIXME lol, no #elif defined(__MINGW64__) // Windows -#define wcwidth(w) 1 // FIXME lol, no -#define wcswidth(w, s) (s) // FIXME lol, no +#include +#define wcwidth(w) 1 // FIXME lol, no +#define wcswidth(w, s) (wcslen(w)) // FIXME lol, no #define htole(x) (x) // FIXME are all windows installs LE? ugh #else // BSDs #include