mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-10 11:29:09 -05:00
Merge topic 'ccmake-solaris'
3b7be02480 ccmake: Fix compilation with ncurses on Solaris
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1876
This commit is contained in:
@@ -5,6 +5,11 @@
|
||||
|
||||
#include "cmConfigure.h" // IWYU pragma: keep
|
||||
|
||||
// Record whether __attribute__ is currently defined. See purpose below.
|
||||
#ifndef __attribute__
|
||||
#define cm_no__attribute__
|
||||
#endif
|
||||
|
||||
#if defined(__hpux)
|
||||
#define _BOOL_DEFINED
|
||||
#include <sys/time.h>
|
||||
@@ -29,4 +34,12 @@ inline void curses_clear()
|
||||
#undef erase
|
||||
#undef clear
|
||||
|
||||
// The curses headers on some platforms (e.g. Solaris) may
|
||||
// define __attribute__ as a macro. This breaks C++ headers
|
||||
// in some cases, so undefine it now.
|
||||
#if defined(cm_no__attribute__) && defined(__attribute__)
|
||||
#undef __attribute__
|
||||
#endif
|
||||
#undef cm_no__attribute__
|
||||
|
||||
#endif // cmCursesStandardIncludes_h
|
||||
|
||||
Reference in New Issue
Block a user