From fabb20dd3361ba21b9e8921835673edc88f9ad5b Mon Sep 17 00:00:00 2001 From: James Vega Date: Wed, 5 Oct 2005 00:47:45 +1000 Subject: [PATCH] Change WCHAR_END to use WCHAR_MAX instead of hard-coding a value. darcs-hash:20051004144745-35ec8-4e638c4bc56f613ac7ecd9d00e859d3d213cde66.gz --- input_common.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/input_common.h b/input_common.h index 2e7edd865..d8031d71a 100644 --- a/input_common.h +++ b/input_common.h @@ -8,17 +8,11 @@ Header file for the low level input library #include -/** - Hopefully, the biggest value that a wchar_t can have. UCS4 is a - 31-bit character set, we use the upper half for special key - sequences. On systems where wchar_t is not a 31 (or less) bit character set - in a 32 (or more) bit type this will fail horribly. -*/ -#define WCHAR_END 0x80000000 +#define WCHAR_END (WCHAR_MAX + (unsigned long)1) enum { - R_NULL = WCHAR_END + 1 + R_NULL = WCHAR_END + (unsigned long)1 } ;