diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-11-07 20:57:10 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-11-07 20:57:10 (GMT) |
commit | b522b84fb4ab32e76668b7e5c3c08bbe7a82fbd0 (patch) | |
tree | 05a484d3c3ecd0e84c940e1a309057baeff32a41 /Source/CursesDialog/cmCursesStandardIncludes.h | |
parent | a3f6e2f9c488f3f1e2e12095be0a3e2e9853b50e (diff) | |
download | CMake-b522b84fb4ab32e76668b7e5c3c08bbe7a82fbd0.zip CMake-b522b84fb4ab32e76668b7e5c3c08bbe7a82fbd0.tar.gz CMake-b522b84fb4ab32e76668b7e5c3c08bbe7a82fbd0.tar.bz2 |
Trying to fix curses problems with some systems.
Diffstat (limited to 'Source/CursesDialog/cmCursesStandardIncludes.h')
-rw-r--r-- | Source/CursesDialog/cmCursesStandardIncludes.h | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/Source/CursesDialog/cmCursesStandardIncludes.h b/Source/CursesDialog/cmCursesStandardIncludes.h index ea77852..caa2216 100644 --- a/Source/CursesDialog/cmCursesStandardIncludes.h +++ b/Source/CursesDialog/cmCursesStandardIncludes.h @@ -1,20 +1,11 @@ -#ifdef __hpux - #define _BOOL_DEFINED - #ifndef _XOPEN_SOURCE_EXTENDED - #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 -#else /* __hpux */ - #include <curses.h> - #include <form.h> -#endif /* __hpux */ - -#ifndef getmaxyx - #define getmaxyx(w,y,x) ((y) = getmaxy(w), (x) = getmaxx(w)) +#if defined(__sun__) && defined(__GNUC__) + #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 + |