Merge branch '4592_clang_format'
[midnight-commander.git] / lib / tty / tty-ncurses.h
blob77895180f2fed2543efc22ec50674550c3c25b23
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
8 #endif
10 #ifdef USE_NCURSES
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)
18 # include <ncurses.h>
19 # else
20 # include <curses.h>
21 # endif
22 #endif
24 #ifdef USE_NCURSESW
25 # include <ncursesw/curses.h>
26 #endif
28 /* netbsd-libcurses doesn't define NCURSES_CONST */
29 #ifndef NCURSES_CONST
30 # define NCURSES_CONST const
31 #endif
33 /* do not draw shadows if NCurses is built with --disable-widec */
34 #if defined(NCURSES_WIDECHAR) && NCURSES_WIDECHAR
35 # define ENABLE_SHADOWS 1
36 #endif
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