summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-08-26 23:42:32 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-08-26 23:42:32 -0300
commitf3a9f5406beb52da58432fdc30eb9db233cff390 (patch)
treef7b7948ed53eb9ca925981ce8d171050d7e966a8
parent8f07868fefeb844a852fab704c0763b0e9a9bf01 (diff)
parentf10cbaa81226f0052721d0f1ff798f2ae07eb0ad (diff)
Merge pull request #248 from eworm-de/wctype
include wctype.h for iswprint()
-rw-r--r--RichString.c4
-rw-r--r--RichString.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/RichString.c b/RichString.c
index a5cc64f7..efabe67a 100644
--- a/RichString.c
+++ b/RichString.c
@@ -29,6 +29,10 @@ in the source distribution for its full text.
#include <curses.h>
#endif
+#ifdef HAVE_LIBNCURSESW
+#include <wctype.h>
+#endif
+
#define RichString_size(this) ((this)->chlen)
#define RichString_sizeVal(this) ((this).chlen)
diff --git a/RichString.h b/RichString.h
index 73e59610..741c84ae 100644
--- a/RichString.h
+++ b/RichString.h
@@ -27,6 +27,10 @@ in the source distribution for its full text.
#include <curses.h>
#endif
+#ifdef HAVE_LIBNCURSESW
+#include <wctype.h>
+#endif
+
#define RichString_size(this) ((this)->chlen)
#define RichString_sizeVal(this) ((this).chlen)