Make sure WCHAR_MAX is defined (This is missing on OpenBSD for example)

darcs-hash:20060509164222-ac50b-595fd7507e2e5585b1a14e32792a38853b795b47.gz
This commit is contained in:
axel 2006-05-10 02:42:22 +10:00
parent 77f35c1b41
commit 51f8272ebd

View file

@ -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