ports/editors/cooledit/files/patch-widget__widechar.c
Yuri Victorovich 852a8ad094 editors/cooledit: Update 3.17.17 -> 3.17.25
Port changes:
* Change to DISTVERSION
* Add LICENSE/LICENSE_FILE
* Fix misspeling in the CONFIGURE_ENABLE for the NEXT_LOOK option
* Add ifdef guarding against non-existing I_PUSH ioctl value
* Regenerate other patches because portlint said they weren't properly generated
* Remove nls translation files (.mo) because they were deleted in configure with
  the note that they weren't maintained

Reported by:	portscout
2018-05-06 18:14:42 +00:00

18 lines
494 B
C

--- widget/widechar.c.orig 2017-08-04 19:12:31 UTC
+++ widget/widechar.c
@@ -227,6 +227,7 @@ static inline struct mb_rule apply_mb_ru
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;
@@ -253,6 +254,7 @@ static inline struct mb_rule apply_mb_ru
mb_rule.end = 0;
mb_rule.ch = -1;
#endif
+#endif
return mb_rule;
}