summaryrefslogtreecommitdiff
path: root/app-text/openjade/files/openjade-1.3.2-wchar_t-uint.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-text/openjade/files/openjade-1.3.2-wchar_t-uint.patch
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-text/openjade/files/openjade-1.3.2-wchar_t-uint.patch')
-rw-r--r--app-text/openjade/files/openjade-1.3.2-wchar_t-uint.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/app-text/openjade/files/openjade-1.3.2-wchar_t-uint.patch b/app-text/openjade/files/openjade-1.3.2-wchar_t-uint.patch
new file mode 100644
index 000000000000..62dcb02cd2ec
--- /dev/null
+++ b/app-text/openjade/files/openjade-1.3.2-wchar_t-uint.patch
@@ -0,0 +1,26 @@
+This fixes Cygwin, where wchar_t is ushort.
+
+--- grove/Node.h
++++ grove/Node.h
+@@ -8,6 +8,7 @@
+ #endif
+
+ #include <stddef.h>
++#include <limits.h>
+ #include "IList.h"
+
+ #ifdef SP_USE_DLL
+@@ -34,10 +35,10 @@
+ #endif
+
+ #ifdef SP_MULTI_BYTE
+-#ifdef SP_WCHAR_T_USHORT
+-typedef wchar_t GroveChar;
+-#else
++#if UINT_MAX >= 0xffffffffL /* 2^32 - 1 */
+ typedef unsigned int GroveChar;
++#else
++typedef unsigned long GroveChar;
+ #endif
+ #else /* not SP_MULTI_BYTE */
+ typedef unsigned char GroveChar;