summaryrefslogtreecommitdiff
path: root/Src/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Modules')
-rw-r--r--Src/Modules/curses.c31
1 files changed, 23 insertions, 8 deletions
diff --git a/Src/Modules/curses.c b/Src/Modules/curses.c
index 19f58cc62..81d34ce4f 100644
--- a/Src/Modules/curses.c
+++ b/Src/Modules/curses.c
@@ -32,20 +32,35 @@
#include "curses.mdh"
#include "curses.pro"
-#ifdef HAVE_NCURSES_H
-# include <ncurses.h>
-#else
-# ifdef HAVE_CURSES_H
-# include <curses.h>
-# endif
-#endif
-
#ifndef MULTIBYTE_SUPPORT
# undef HAVE_GETCCHAR
# undef HAVE_SETCCHAR
# undef HAVE_WADDWSTR
# undef HAVE_WGET_WCH
# undef HAVE_WIN_WCH
+# undef HAVE_NCURSESW_NCURSES_H
+#endif
+
+#ifdef ZSH_IGNORE_NCURSES
+# ifdef HAVE_CURSES_H
+# include <curses.h>
+# endif
+#else
+# ifdef HAVE_NCURSESW_NCURSES_H
+# include <ncursesw/ncurses.h>
+# else
+# ifdef HAVE_NCURSES_H
+# include <ncurses.h>
+# else
+# ifdef HAVE_NCURSES_NCURSES_H
+# include <ncurses/ncurses.h>
+# else
+# ifdef HAVE_CURSES_H
+# include <curses.h>
+# endif
+# endif
+# endif
+# endif
#endif
#ifdef HAVE_SETCCHAR