1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#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 int main() { curses_version(); return 0; }