1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-20 04:24:36 +08:00

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
This commit is contained in:
Brad King
2022-12-07 17:55:42 -05:00
parent 8bf724f756
commit d91d9ec431

View File

@@ -54,6 +54,9 @@
# if defined(__hpux) && !defined(HAVE__XOPEN_SOURCE_EXTENDED) # if defined(__hpux) && !defined(HAVE__XOPEN_SOURCE_EXTENDED)
# undef _XOPEN_SOURCE_EXTENDED # undef _XOPEN_SOURCE_EXTENDED
# endif # endif
/* Some curses/term headers define lower-case macros that
conflict with our source code. Undefine them. */
# undef newline
# endif # endif
#include <eti.h> #include <eti.h>