Trying to fix curses problems with some systems.

This commit is contained in:
Bill Hoffman 2001-11-07 15:57:10 -05:00
parent a3f6e2f9c4
commit b522b84fb4
1 changed files with 10 additions and 19 deletions

View File

@ -1,20 +1,11 @@
#ifdef __hpux #if defined(__sun__) && defined(__GNUC__)
#define _BOOL_DEFINED #define _MSE_INT_H
#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))
#endif #endif
#define _BOOL_DEFINED
#include <sys/time.h>
#define _XOPEN_SOURCE_EXTENDED
#include <curses.h>
#include <form.h>
#undef _XOPEN_SOURCE_EXTENDED