2009-05-10 19:01:15 +04:00
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
#ifndef MC__TTY_NCURSES_H
|
|
|
|
#define MC__TTY_NCURSES_H
|
2009-05-10 19:01:15 +04:00
|
|
|
|
2021-01-24 14:19:22 +03:00
|
|
|
/* for cchar_t, getcchar(), setcchar() */
|
|
|
|
#ifndef _XOPEN_SOURCE_EXTENDED
|
|
|
|
#define _XOPEN_SOURCE_EXTENDED
|
|
|
|
#endif
|
|
|
|
|
2009-05-10 19:01:15 +04:00
|
|
|
#ifdef USE_NCURSES
|
2010-11-08 13:21:45 +03:00
|
|
|
#ifdef HAVE_NCURSES_CURSES_H
|
|
|
|
#include <ncurses/curses.h>
|
2013-07-16 09:34:28 +04:00
|
|
|
#elif defined (HAVE_NCURSES_NCURSES_H)
|
2010-11-08 13:21:45 +03:00
|
|
|
#include <ncurses/ncurses.h>
|
2013-07-16 09:34:28 +04:00
|
|
|
#elif defined (HAVE_NCURSESW_CURSES_H)
|
|
|
|
#include <ncursesw/curses.h>
|
|
|
|
#elif defined (HAVE_NCURSES_HCURSES_H) || defined (HAVE_NCURSES_H)
|
2010-11-08 13:21:45 +03:00
|
|
|
#include <ncurses.h>
|
|
|
|
#else
|
|
|
|
#include <curses.h>
|
|
|
|
#endif
|
2009-09-17 02:07:04 +04:00
|
|
|
#endif /* USE_NCURSES */
|
2009-05-10 19:01:15 +04:00
|
|
|
|
|
|
|
#ifdef USE_NCURSESW
|
2010-11-08 13:21:45 +03:00
|
|
|
#include <ncursesw/curses.h>
|
2009-09-17 02:07:04 +04:00
|
|
|
#endif /* USE_NCURSESW */
|
2009-05-10 19:01:15 +04:00
|
|
|
|
2016-08-09 16:55:12 +03:00
|
|
|
/* netbsd-libcurses doesn't define NCURSES_CONST */
|
|
|
|
#ifndef NCURSES_CONST
|
|
|
|
#define NCURSES_CONST const
|
|
|
|
#endif
|
|
|
|
|
2021-08-28 11:46:53 +03:00
|
|
|
/* do not draw shadows if NCurses is built with --disable-widec */
|
|
|
|
#if defined(NCURSES_WIDECHAR) && NCURSES_WIDECHAR
|
|
|
|
#define ENABLE_SHADOWS 1
|
|
|
|
#endif
|
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
/*** typedefs(not structures) and defined constants **********************************************/
|
|
|
|
|
|
|
|
/*** enums ***************************************************************************************/
|
|
|
|
|
|
|
|
/*** structures declarations (and typedefs of structures)*****************************************/
|
|
|
|
|
|
|
|
/*** global variables defined in .c file *********************************************************/
|
|
|
|
|
|
|
|
/*** declarations of public functions ************************************************************/
|
|
|
|
|
|
|
|
/*** inline functions ****************************************************************************/
|
|
|
|
|
2009-09-17 02:07:04 +04:00
|
|
|
#endif /* MC_TTY_NCURSES_H */
|