mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-22 16:20:23 +02:00
24107: extra search for ncurses headers but dont use if library isnt ncurses
This commit is contained in:
parent
c41324baa0
commit
bb70fc6fe6
3 changed files with 43 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue