summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-12-07 22:55:42 (GMT)
committerBrad King <brad.king@kitware.com>2022-12-07 22:57:28 (GMT)
commitd91d9ec431c9c8e728367f8c7b43ead9e3fbb60f (patch)
tree45faa64d4500674b5c0f8cf1b043007b5c71cd84 /Source/CursesDialog
parent8bf724f756d9c62d1d2234c140420f6410dc38ca (diff)
downloadCMake-d91d9ec431c9c8e728367f8c7b43ead9e3fbb60f.zip
CMake-d91d9ec431c9c8e728367f8c7b43ead9e3fbb60f.tar.gz
CMake-d91d9ec431c9c8e728367f8c7b43ead9e3fbb60f.tar.bz2
ccmake: Restore compilation with AIX curses.h
On AIX, including `<curses.h>` includes `<term.h>` which defines a bunch of non-prefixed, lower-case macro names. Undefine one that conflicts with our source code. Fixes: #24229
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r--Source/CursesDialog/form/form.h3
1 files changed, 3 insertions, 0 deletions
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 <eti.h>