1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-30 05:40:58 +01:00

24705: rationalise curses and term headers even more

This commit is contained in:
Peter Stephenson 2008-03-13 11:10:59 +00:00
parent 37a7e81390
commit 2ca42b2025
7 changed files with 171 additions and 130 deletions

View file

@ -30,7 +30,7 @@
#define USES_TERM_H 1
#include "terminfo.mdh"
#if defined(HAVE_TIGETFLAG) && (defined(HAVE_CURSES_H) || defined(HAVE_NCURSES_H) || defined(HAVE_NCURSES_NCURSES_H) || defined(HAVE_NCURSESW_NCURSES_H))
#if defined(HAVE_TIGETFLAG) && defined(ZSH_HAVE_CURSES_H)
# define USE_TERMINFO_MODULE 1
#else
# undef USE_TERMINFO_MODULE
@ -49,30 +49,12 @@
# undef offsetof
# 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_NCURSES_H
# include <ncurses/ncurses.h>
# else
# ifdef HAVE_NCURSES_H
# include <ncurses.h>
# else
# ifdef HAVE_CURSES_H
# include <curses.h>
# endif
# endif
# endif
# endif
#ifdef ZSH_HAVE_CURSES_H
# include "../zshcurses.h"
#endif
# ifdef HAVE_TERM_H
# include <term.h>
# ifdef ZSH_HAVE_TERM_H
# include "../zshterm.h"
# endif
/* echoti: output a terminfo capability */