From 51f8272ebdedf73a3d31a591933df85c96ff446d Mon Sep 17 00:00:00 2001 From: axel Date: Wed, 10 May 2006 02:42:22 +1000 Subject: [PATCH] Make sure WCHAR_MAX is defined (This is missing on OpenBSD for example) darcs-hash:20060509164222-ac50b-595fd7507e2e5585b1a14e32792a38853b795b47.gz --- fallback.h | 7 +++++++ 1 file changed, 7 insertions(+) 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