ccmake: Cleanup and simplify conditional blocks for HP-UX
This commit is contained in:
parent
44f02b42fb
commit
7a68729223
|
@ -15,29 +15,12 @@
|
|||
#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
|
||||
|
||||
// This is a hack to prevent warnings about these functions being
|
||||
// declared but not referenced.
|
||||
|
@ -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
|
||||
|
|
|
@ -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
|
||||
MODULE_ID("$Id$")
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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$")
|
||||
|
||||
|
|
Loading…
Reference in New Issue