Added check to see if libinfow is required by ncursesw.

This commit is contained in:
rakshasa
2012-02-27 01:22:47 +09:00
parent 482a9ba09f
commit d8f41a28fa
5 changed files with 40 additions and 229 deletions
+13
View File
@@ -39,7 +39,20 @@
#include <string>
#include <vector>
#if defined(HAVE_NCURSESW_CURSES_H)
#include <ncursesw/curses.h>
#elif defined(HAVE_NCURSESW_H)
#include <ncursesw.h>
#elif defined(HAVE_NCURSES_CURSES_H)
#include <ncurses/curses.h>
#elif defined(HAVE_NCURSES_H)
#include <ncurses.h>
#elif defined(HAVE_CURSES_H)
#include <curses.h>
#else
#error "SysV or X/Open-compatible Curses header file required"
#endif
// Let us hail the creators of curses for being idiots. The only
// clever move they made was in the naming.