etc: Enable a tty for a serial port by default.
[dragora.git] / patches / openjade / openjade-1.3.2-wchar_t-uint.patch
blob920cff248d60c48bf8a3f791133ea4ee0c0f9f50
1 This fixes Cygwin, where wchar_t is ushort.
3 --- a/grove/Node.h
4 +++ b/grove/Node.h
5 @@ -8,6 +8,7 @@
6 #endif
8 #include <stddef.h>
9 +#include <limits.h>
10 #include "IList.h"
12 #ifdef SP_USE_DLL
13 @@ -34,10 +35,10 @@
14 #endif
16 #ifdef SP_MULTI_BYTE
17 -#ifdef SP_WCHAR_T_USHORT
18 -typedef wchar_t GroveChar;
19 -#else
20 +#if UINT_MAX >= 0xffffffffL /* 2^32 - 1 */
21 typedef unsigned int GroveChar;
22 +#else
23 +typedef unsigned long GroveChar;
24 #endif
25 #else /* not SP_MULTI_BYTE */
26 typedef unsigned char GroveChar;