1
2
3
4
5
6
7
8
9
10 #ifndef CURSES_INTERNAL_H
11 # define CURSES_INTERNAL_H
12
13 # include <stdio.h>
14
15 # ifndef PCMK__CONFIG_H
16 # define PCMK__CONFIG_H
17 # include <config.h>
18 # endif
19
20 # include <crm/common/logging.h>
21
22
23
24
25
26
27 # if defined(HAVE_LIBNCURSES) || defined(HAVE_LIBCURSES)
28 # if defined(HAVE_NCURSES_H) && !defined(HAVE_INCOMPATIBLE_PRINTW)
29 # include <ncurses.h>
30 # define CURSES_ENABLED 1
31 # elif defined(HAVE_NCURSES_NCURSES_H) && !defined(HAVE_INCOMPATIBLE_PRINTW)
32 # include <ncurses/ncurses.h>
33 # define CURSES_ENABLED 1
34 # elif defined(HAVE_CURSES_H) && !defined(HAVE_INCOMPATIBLE_PRINTW)
35 # include <curses.h>
36 # define CURSES_ENABLED 1
37 # elif defined(HAVE_CURSES_CURSES_H) && !defined(HAVE_INCOMPATIBLE_PRINTW)
38 # include <curses/curses.h>
39 # define CURSES_ENABLED 1
40 # else
41 # define CURSES_ENABLED 0
42 # endif
43 # else
44 # define CURSES_ENABLED 0
45 # endif
46
47 #endif