diff options
author | Brad King <brad.king@kitware.com> | 2022-12-07 22:55:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-12-07 22:57:28 (GMT) |
commit | d91d9ec431c9c8e728367f8c7b43ead9e3fbb60f (patch) | |
tree | 45faa64d4500674b5c0f8cf1b043007b5c71cd84 /Source/CursesDialog | |
parent | 8bf724f756d9c62d1d2234c140420f6410dc38ca (diff) | |
download | CMake-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.h | 3 |
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> |