1 2 #ifndef MC__TTY_NCURSES_H 3 #define MC__TTY_NCURSES_H 4 5 /* for cchar_t, getcchar(), setcchar() */ 6 #ifndef _XOPEN_SOURCE_EXTENDED 7 #define _XOPEN_SOURCE_EXTENDED 8 #endif 9 10 #ifdef HAVE_NCURSESW_NCURSES_H 11 #include <ncursesw/ncurses.h> 12 #elif defined(HAVE_NCURSESW_CURSES_H) 13 #include <ncursesw/curses.h> 14 #elif defined(HAVE_NCURSES_NCURSES_H) 15 #include <ncurses/ncurses.h> 16 #elif defined(HAVE_NCURSES_CURSES_H) 17 #include <ncurses/curses.h> 18 #elif defined(HAVE_NCURSES_H) 19 #include <ncurses.h> 20 #else 21 #include <curses.h> 22 #endif 23 24 /* netbsd-libcurses doesn't define NCURSES_CONST */ 25 #ifndef NCURSES_CONST 26 #define NCURSES_CONST const 27 #endif 28 29 /* do not draw shadows if NCurses is built with --disable-widec */ 30 #if defined(NCURSES_WIDECHAR) && NCURSES_WIDECHAR 31 #define ENABLE_SHADOWS 1 32 #endif 33 34 /*** typedefs(not structures) and defined constants **********************************************/ 35 36 /*** enums ***************************************************************************************/ 37 38 /*** structures declarations (and typedefs of structures)*****************************************/ 39 40 /*** global variables defined in .c file *********************************************************/ 41 42 /*** declarations of public functions ************************************************************/ 43 44 /*** inline functions ****************************************************************************/ 45 46 #endif