ccmake: Cleanup and simplify conditional blocks for HP-UX

This commit is contained in:
Ådne Hovda 2014-11-18 11:40:05 +01:00 committed by Brad King
parent 44f02b42fb
commit 7a68729223
5 changed files with 13 additions and 42 deletions

View File

@ -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

View File

@ -29,13 +29,7 @@
/****************************************************************************
* Author: Juergen Pfeifer <juergen.pfeifer@gmx.net> 1995,1997 *
****************************************************************************/
#if defined(__hpux)
#define _XOPEN_SOURCE_EXTENDED
#endif
#include "form.priv.h"
#if defined(__hpux)
#undef _XOPEN_SOURCE_EXTENDED
#endif
#include "form.priv.h"
MODULE_ID("$Id$")
/*----------------------------------------------------------------------------

View File

@ -47,7 +47,17 @@
# elif defined(CURSES_HAVE_NCURSES_CURSES_H)
# include <ncurses/curses.h>
# else
# if defined(__hpux)
# if defined(_XOPEN_SOURCE_EXTENDED)
# define HAVE__XOPEN_SOURCE_EXTENDED
# else
# define _XOPEN_SOURCE_EXTENDED
# endif
# endif
# include <curses.h>
# if defined(__hpux) && !defined(HAVE__XOPEN_SOURCE_EXTENDED)
# undef _XOPEN_SOURCE_EXTENDED
# endif
# endif
#include <eti.h>

View File

@ -29,13 +29,7 @@
/****************************************************************************
* Author: Juergen Pfeifer <juergen.pfeifer@gmx.net> 1995,1997 *
****************************************************************************/
#if defined(__hpux)
#define _XOPEN_SOURCE_EXTENDED
#endif
#include "form.priv.h"
#if defined(__hpux)
#undef _XOPEN_SOURCE_EXTENDED
#endif
/* AIX seems to define this */
#undef lines

View File

@ -35,13 +35,7 @@
* Routines to handle external names of menu requests *
***************************************************************************/
#if defined(__hpux)
#define _XOPEN_SOURCE_EXTENDED
#endif
#include "form.priv.h"
#if defined(__hpux)
#undef _XOPEN_SOURCE_EXTENDED
#endif
MODULE_ID("$Id$")