pull curses.h out of internal.h

This commit is contained in:
nick black 2021-11-20 16:24:33 -06:00
parent 10739673b2
commit cf9e5b8c8e
3 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
#include "internal.h" #include "internal.h"
#include <curses.h>
#ifdef USE_DEFLATE #ifdef USE_DEFLATE
#include <libdeflate.h> #include <libdeflate.h>
#endif #endif

View File

@ -22,7 +22,6 @@ extern "C" {
// KEY_EVENT is defined by both ncurses.h (prior to 6.3) and wincon.h. since we // KEY_EVENT is defined by both ncurses.h (prior to 6.3) and wincon.h. since we
// don't use either definition, kill it before inclusion of ncurses.h. // don't use either definition, kill it before inclusion of ncurses.h.
#undef KEY_EVENT #undef KEY_EVENT
#include <ncurses.h> // needed for some definitions, see terminfo(3ncurses)
#include <term.h> #include <term.h>
#include <time.h> #include <time.h>
#include <term.h> #include <term.h>

View File

@ -1,5 +1,6 @@
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
#include <curses.h>
#ifdef __linux__ #ifdef __linux__
#include <sys/utsname.h> #include <sys/utsname.h>
#endif #endif