diff options
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 + |