diff options
Diffstat (limited to 'Source/CursesDialog/cmCursesStandardIncludes.h')
-rw-r--r-- | Source/CursesDialog/cmCursesStandardIncludes.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Source/CursesDialog/cmCursesStandardIncludes.h b/Source/CursesDialog/cmCursesStandardIncludes.h index 456d4a6..a5b229c 100644 --- a/Source/CursesDialog/cmCursesStandardIncludes.h +++ b/Source/CursesDialog/cmCursesStandardIncludes.h @@ -20,6 +20,8 @@ #define _MSE_INT_H #endif +#include <cmFormConfigure.h> + #if defined(__hpux) # define _BOOL_DEFINED # include <sys/time.h> @@ -28,7 +30,17 @@ # include <form.h> # undef _XOPEN_SOURCE_EXTENDED #else -# include <curses.h> +/* figure out which curses.h to include */ +# if defined(CURSES_HAVE_NCURSES_H) +# include <ncurses.h> +# elif defined(CURSES_HAVE_NCURSES_NCURSES_H) +# include <ncurses/ncurses.h> +# elif defined(CURSES_HAVE_NCURSES_CURSES_H) +# include <ncurses/curses.h> +# else +# include <curses.h> +# endif + # include <form.h> #endif |