summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)