diff --git a/fallback.h b/fallback.h index c172e76d0..3d4e0a81e 100644 --- a/fallback.h +++ b/fallback.h @@ -8,6 +8,13 @@ #include +#ifndef WCHAR_MAX +/** + This _should_ be defined by wchar.h, but e.g. OpenBSD doesn't. +*/ +#define WCHAR_MAX 0x7fffffffu +#endif + /** Under curses, tputs expects an int (*func)(char) as its last parameter, but in ncurses, tputs expects a int (*func)(int) as its