From d91d9ec431c9c8e728367f8c7b43ead9e3fbb60f Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 7 Dec 2022 17:55:42 -0500 Subject: ccmake: Restore compilation with AIX curses.h On AIX, including `` includes `` which defines a bunch of non-prefixed, lower-case macro names. Undefine one that conflicts with our source code. Fixes: #24229 --- Source/CursesDialog/form/form.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/CursesDialog/form/form.h b/Source/CursesDialog/form/form.h index 39ed75a..b590c97 100644 --- a/Source/CursesDialog/form/form.h +++ b/Source/CursesDialog/form/form.h @@ -54,6 +54,9 @@ # if defined(__hpux) && !defined(HAVE__XOPEN_SOURCE_EXTENDED) # undef _XOPEN_SOURCE_EXTENDED # endif + /* Some curses/term headers define lower-case macros that + conflict with our source code. Undefine them. */ +# undef newline # endif #include -- cgit v0.12