summaryrefslogtreecommitdiff
path: root/editors/cooledit/files/patch-widget__widechar.c
diff options
context:
space:
mode:
Diffstat (limited to 'editors/cooledit/files/patch-widget__widechar.c')
-rw-r--r--editors/cooledit/files/patch-widget__widechar.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/editors/cooledit/files/patch-widget__widechar.c b/editors/cooledit/files/patch-widget__widechar.c
new file mode 100644
index 000000000000..c60929714b2c
--- /dev/null
+++ b/editors/cooledit/files/patch-widget__widechar.c
@@ -0,0 +1,18 @@
+--- widget/widechar.c.orig Sat Nov 27 17:46:03 2004
++++ widget/widechar.c Wed Dec 15 01:17:59 2004
+@@ -227,6 +227,7 @@
+ static inline struct mb_rule apply_mb_rules_going_right (WEdit * edit, long byte_index, struct mb_rule mb_rule)
+ {
+ #ifdef HAVE_WCHAR_H
++#ifdef HAVE_MBRTOWC
+ wchar_t wc;
+ unsigned char p[16];
+ int n;
+@@ -252,6 +253,7 @@
+ }
+ mb_rule.end = 0;
+ mb_rule.ch = -1;
++#endif
+ #endif
+ return mb_rule;
+ }