Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/editors/cooledit/files/patch-widget__widechar.c
16151 views
1
--- widget/widechar.c.orig 2017-08-04 19:12:31 UTC
2
+++ widget/widechar.c
3
@@ -227,6 +227,7 @@ static inline struct mb_rule apply_mb_ru
4
static inline struct mb_rule apply_mb_rules_going_right (WEdit * edit, long byte_index, struct mb_rule mb_rule)
5
{
6
#ifdef HAVE_WCHAR_H
7
+#ifdef HAVE_MBRTOWC
8
wchar_t wc;
9
unsigned char p[16];
10
int n;
11
@@ -253,6 +254,7 @@ static inline struct mb_rule apply_mb_ru
12
mb_rule.end = 0;
13
mb_rule.ch = -1;
14
#endif
15
+#endif
16
return mb_rule;
17
}
18
19
20