Просмотр исходного кода

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
Brad King 3 лет назад
Родитель
Сommit
d91d9ec431
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      Source/CursesDialog/form/form.h

+ 3 - 0
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>