mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-19 19:43:23 +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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user