summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog/cmCursesStandardIncludes.h
diff options
context:
space:
mode:
authorÅdne Hovda <ahovda@openit.com>2014-11-18 10:40:05 (GMT)
committerBrad King <brad.king@kitware.com>2014-11-18 15:03:35 (GMT)
commit7a68729223c05d779188de89066de414d131dbcb (patch)
tree518667eb9e3f5c6a7a25ecde9f00922af764276a /Source/CursesDialog/cmCursesStandardIncludes.h
parent44f02b42fb3b2278fdf8e9bd450c3f01573d1e3e (diff)
downloadCMake-7a68729223c05d779188de89066de414d131dbcb.zip
CMake-7a68729223c05d779188de89066de414d131dbcb.tar.gz
CMake-7a68729223c05d779188de89066de414d131dbcb.tar.bz2
ccmake: Cleanup and simplify conditional blocks for HP-UX
Diffstat (limited to 'Source/CursesDialog/cmCursesStandardIncludes.h')
-rw-r--r--Source/CursesDialog/cmCursesStandardIncludes.h25
1 files changed, 2 insertions, 23 deletions
diff --git a/Source/CursesDialog/cmCursesStandardIncludes.h b/Source/CursesDialog/cmCursesStandardIncludes.h
index b157a28..791ac9b 100644
--- a/Source/CursesDialog/cmCursesStandardIncludes.h
+++ b/Source/CursesDialog/cmCursesStandardIncludes.h
@@ -15,30 +15,13 @@
#define _MSE_INT_H
#endif
-#include <cmFormConfigure.h>
-
#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
-/* figure out which curses.h to include */
-# if defined(CURSES_HAVE_NCURSES_H)
-# include <ncurses.h>
-# elif defined(CURSES_HAVE_NCURSES_NCURSES_H)
-# include <ncurses/ncurses.h>
-# elif defined(CURSES_HAVE_NCURSES_CURSES_H)
-# include <ncurses/curses.h>
-# else
-# include <curses.h>
-# endif
-
-# include <form.h>
#endif
+#include <form.h>
+
// This is a hack to prevent warnings about these functions being
// declared but not referenced.
#if defined(__sgi) && !defined(__GNUC__)
@@ -57,10 +40,6 @@ public:
};
#endif
-#ifndef getmaxyx
- #define getmaxyx(w,y,x) ((y) = getmaxy(w), (x) = getmaxx(w))
-#endif
-
// on some machines move erase and clear conflict with stl
// so remove them from the namespace