diff options
author | Berk Geveci <berk.geveci@kitware.com> | 2001-11-07 20:01:59 (GMT) |
---|---|---|
committer | Berk Geveci <berk.geveci@kitware.com> | 2001-11-07 20:01:59 (GMT) |
commit | a3f6e2f9c488f3f1e2e12095be0a3e2e9853b50e (patch) | |
tree | 2c811a7f7494f17c8dbda0ef2121ebfde2433f91 /Source/CursesDialog/cmCursesStandardIncludes.h | |
parent | 72d683e0eed03329302374ec3d0f4ca3eacd93ee (diff) | |
download | CMake-a3f6e2f9c488f3f1e2e12095be0a3e2e9853b50e.zip CMake-a3f6e2f9c488f3f1e2e12095be0a3e2e9853b50e.tar.gz CMake-a3f6e2f9c488f3f1e2e12095be0a3e2e9853b50e.tar.bz2 |
Trying to fix build problems related to curses.
Diffstat (limited to 'Source/CursesDialog/cmCursesStandardIncludes.h')
-rw-r--r-- | Source/CursesDialog/cmCursesStandardIncludes.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/Source/CursesDialog/cmCursesStandardIncludes.h b/Source/CursesDialog/cmCursesStandardIncludes.h index 1cb009b..ea77852 100644 --- a/Source/CursesDialog/cmCursesStandardIncludes.h +++ b/Source/CursesDialog/cmCursesStandardIncludes.h @@ -1,7 +1,20 @@ #ifdef __hpux - #define _XOPEN_SOURCE_EXTENDED #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 */ -#include <curses.h> -#include <form.h> +#ifndef getmaxyx + #define getmaxyx(w,y,x) ((y) = getmaxy(w), (x) = getmaxx(w)) +#endif |