diff options
author | Berk Geveci <berk.geveci@kitware.com> | 2001-11-09 21:05:33 (GMT) |
---|---|---|
committer | Berk Geveci <berk.geveci@kitware.com> | 2001-11-09 21:05:33 (GMT) |
commit | 23f0b7760f862c1befa2c7b327acec9910abbcee (patch) | |
tree | 34ff122ad9a0c092a5eea4ceb3eefaf3e44e6302 /Source/CursesDialog/cmCursesStandardIncludes.h | |
parent | 722283804b7d3b04e90daac84465c53130748ee0 (diff) | |
download | CMake-23f0b7760f862c1befa2c7b327acec9910abbcee.zip CMake-23f0b7760f862c1befa2c7b327acec9910abbcee.tar.gz CMake-23f0b7760f862c1befa2c7b327acec9910abbcee.tar.bz2 |
Trying to fix curses.
Diffstat (limited to 'Source/CursesDialog/cmCursesStandardIncludes.h')
-rw-r--r-- | Source/CursesDialog/cmCursesStandardIncludes.h | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/Source/CursesDialog/cmCursesStandardIncludes.h b/Source/CursesDialog/cmCursesStandardIncludes.h index caa2216..b932d16 100644 --- a/Source/CursesDialog/cmCursesStandardIncludes.h +++ b/Source/CursesDialog/cmCursesStandardIncludes.h @@ -2,10 +2,20 @@ #define _MSE_INT_H #endif -#define _BOOL_DEFINED -#include <sys/time.h> -#define _XOPEN_SOURCE_EXTENDED -#include <curses.h> -#include <form.h> -#undef _XOPEN_SOURCE_EXTENDED +#if defined(__hpux) + #define _BOOL_DEFINED + #include <sys/time.h> + #define _XOPEN_SOURCE_EXTENDED + #include <curses.h> + #include <form.h> + #undef _XOPEN_SOURCE_EXTENDED +#else + #include <curses.h> + #include <form.h> +#endif + +#ifndef getmaxyx + #define getmaxyx(w,y,x) ((y) = getmaxy(w), (x) = getmaxx(w)) +#endif + |