2 #ifndef MC__TTY_NCURSES_H
3 #define MC__TTY_NCURSES_H
5 /* for cchar_t, getcchar(), setcchar() */
6 #ifndef _XOPEN_SOURCE_EXTENDED
7 #define _XOPEN_SOURCE_EXTENDED
11 #ifdef HAVE_NCURSES_CURSES_H
12 #include <ncurses/curses.h>
13 #elif defined (HAVE_NCURSES_NCURSES_H)
14 #include <ncurses/ncurses.h>
15 #elif defined (HAVE_NCURSESW_CURSES_H)
16 #include <ncursesw/curses.h>
17 #elif defined (HAVE_NCURSES_HCURSES_H) || defined (HAVE_NCURSES_H)
22 #endif /* USE_NCURSES */
25 #include <ncursesw/curses.h>
26 #endif /* USE_NCURSESW */
28 /* netbsd-libcurses doesn't define NCURSES_CONST */
30 #define NCURSES_CONST const
33 /* do not draw shadows if NCurses is built with --disable-widec */
34 #if defined(NCURSES_WIDECHAR) && NCURSES_WIDECHAR
35 #define ENABLE_SHADOWS 1
38 /*** typedefs(not structures) and defined constants **********************************************/
40 /*** enums ***************************************************************************************/
42 /*** structures declarations (and typedefs of structures)*****************************************/
44 /*** global variables defined in .c file *********************************************************/
46 /*** declarations of public functions ************************************************************/
48 /*** inline functions ****************************************************************************/
50 #endif /* MC_TTY_NCURSES_H */