[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 16/21] wcwidth: fix 'conflicting types' error for `__wcwidth' on
From: |
KO Myung-Hun |
Subject: |
[PATCH 16/21] wcwidth: fix 'conflicting types' error for `__wcwidth' on OS/2 kLIBC |
Date: |
Sun, 30 Nov 2014 13:20:18 +0900 |
wchar_t(unsigned short) is defined differently from wint_t(int) on
OS/2 kLIBC.
* lib/wcwidth.c (wcwidth, HAVE_WCWIDTH): Undefine on OS/2 kLIBC.
---
lib/wcwidth.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/lib/wcwidth.c b/lib/wcwidth.c
index d7837bb..b36abd5 100644
--- a/lib/wcwidth.c
+++ b/lib/wcwidth.c
@@ -26,6 +26,15 @@
#include "streq.h"
#include "uniwidth.h"
+#ifdef __KLIBC__
+/* To avoid 'conflicting types' error for `__wcwidth' on OS/2 kLIBC.
+ wchar_t(unsigned short) is defined differently from wint_t(int) on
+ OS/2 kLIBC. */
+# undef wcwidth
+/* Ignore wcwidth() of OS/2 kLIBC */
+# undef HAVE_WCWIDTH
+#endif
+
int
wcwidth (wchar_t wc)
#undef wcwidth
--
1.8.5.2
- Re: [PATCH 12/21] pipe_filter_ii_execute: port to OS/2 kLIBC, (continued)
- [PATCH 10/21] binary-io: put fd in binary mode if it is not a console on EMX, KO Myung-Hun, 2014/11/30
- [PATCH 11/21] pipe-filter-aux: undefine HAVE_SELECT on KLIBC, KO Myung-Hun, 2014/11/30
- [PATCH 14/21] getdtablesize: do not use getrlimit() on OS/2 kLIBC, KO Myung-Hun, 2014/11/30
- [PATCH 13/21] w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC, KO Myung-Hun, 2014/11/30
- [PATCH 16/21] wcwidth: fix 'conflicting types' error for `__wcwidth' on OS/2 kLIBC,
KO Myung-Hun <=
- [PATCH 18/21] Workaround for dirfd() on OS/2 kLIBC, KO Myung-Hun, 2014/11/30
- [PATCH 15/21] freopen: workaround freopen() on OS/2 kLIBC, KO Myung-Hun, 2014/11/30
- [PATCH 17/21] Workaround for D_INO_IN_DIRENT on OS/2 kLIBC, KO Myung-Hun, 2014/11/30
- [PATCH 20/21] fdopendir: port to OS/2 kLIBC, KO Myung-Hun, 2014/11/30