diff options
author | Ådne Hovda <ahovda@openit.com> | 2014-11-18 10:40:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-11-18 15:03:35 (GMT) |
commit | 7a68729223c05d779188de89066de414d131dbcb (patch) | |
tree | 518667eb9e3f5c6a7a25ecde9f00922af764276a /Source/CursesDialog/form/form.h | |
parent | 44f02b42fb3b2278fdf8e9bd450c3f01573d1e3e (diff) | |
download | CMake-7a68729223c05d779188de89066de414d131dbcb.zip CMake-7a68729223c05d779188de89066de414d131dbcb.tar.gz CMake-7a68729223c05d779188de89066de414d131dbcb.tar.bz2 |
ccmake: Cleanup and simplify conditional blocks for HP-UX
Diffstat (limited to 'Source/CursesDialog/form/form.h')
-rw-r--r-- | Source/CursesDialog/form/form.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/CursesDialog/form/form.h b/Source/CursesDialog/form/form.h index 94f05af..1219cb5 100644 --- a/Source/CursesDialog/form/form.h +++ b/Source/CursesDialog/form/form.h @@ -47,7 +47,17 @@ # elif defined(CURSES_HAVE_NCURSES_CURSES_H) # include <ncurses/curses.h> # else +# if defined(__hpux) +# if defined(_XOPEN_SOURCE_EXTENDED) +# define HAVE__XOPEN_SOURCE_EXTENDED +# else +# define _XOPEN_SOURCE_EXTENDED +# endif +# endif # include <curses.h> +# if defined(__hpux) && !defined(HAVE__XOPEN_SOURCE_EXTENDED) +# undef _XOPEN_SOURCE_EXTENDED +# endif # endif #include <eti.h> |