From 87744567a7d37d31c047962716cdbf7a8bf499cd Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 4 Jul 2023 21:47:21 +0200 Subject: [PATCH] Fix symbol clash after ncurses introduced format attributes. --- gui_ncurses.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gui_ncurses.c b/gui_ncurses.c index a341989..ee9b959 100644 --- a/gui_ncurses.c +++ b/gui_ncurses.c @@ -19,6 +19,9 @@ MOJOGUI_PLUGIN(ncurses) CREATE_MOJOGUI_ENTRY_POINT(ncurses) #endif +// ncurses headers use 'format' in an __attribute__, undefine ours for now. +#undef format + #include #include // CMake searches for a whole bunch of different possible curses includes @@ -36,6 +39,10 @@ CREATE_MOJOGUI_ENTRY_POINT(ncurses) #include +// restore the format define from gui.h now that the ncurses headers are done. +#define format entry->format + + // This was built to look roughly like dialog(1), but it's not nearly as // robust. Also, I didn't use any of dialog's code, as it is GPL/LGPL, // depending on what version you start with. There _is_ a libdialog, but