undef KEY_EVENT before including ncurses.h #2062

pull/2083/head
nick black 3 years ago
parent 91dfb487ad
commit d49dd8dbbb
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

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

Loading…
Cancel
Save