diff options
author | axel <axel@liljencrantz.se> | 2006-05-10 02:42:22 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-05-10 02:42:22 +1000 |
commit | 51f8272ebdedf73a3d31a591933df85c96ff446d (patch) | |
tree | ae024e6980ce9aad0096f551cc2219aed58cc624 /fallback.h | |
parent | 77f35c1b415b8b6cd6149dfcab1ef8f5c86774c0 (diff) |
Make sure WCHAR_MAX is defined (This is missing on OpenBSD for example)
darcs-hash:20060509164222-ac50b-595fd7507e2e5585b1a14e32792a38853b795b47.gz
Diffstat (limited to 'fallback.h')
-rw-r--r-- | fallback.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -8,6 +8,13 @@ #include <wchar.h> +#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 |