Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
/* Define to 1 if you have the `memset' function. */
#undef HAVE_MEMSET

/* Define to 1 if you have the <ncurses/panel.h> header file. */
#undef HAVE_NCURSES_PANEL_H

/* Define to 1 if you have the <panel.h> header file. */
#undef HAVE_PANEL_H

Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ AC_SEARCH_LIBS([new_panel], [panel], ,

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([errno.h fcntl.h limits.h panel.h stdlib.h string.h unistd.h])
AC_CHECK_HEADERS([errno.h fcntl.h limits.h panel.h ncurses/panel.h stdlib.h string.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
Expand Down
7 changes: 7 additions & 0 deletions curses/ConWin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@

#define INCLUDED_CONWIN_HPP

#include "config.h"
#if defined(HAVE_PANEL_H)
#include <panel.h>
#elif defined(HAVE_NCURSES_PANEL_H)
#include <ncurses/panel.h>
#else
#error "Couldn't find a panel.h header."
#endif
#undef border // It interferes with my member function

#define KEY_ESCAPE 0x1B
Expand Down