diff options
Diffstat (limited to 'Include')
-rw-r--r-- | Include/py_curses.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/Include/py_curses.h b/Include/py_curses.h index 336c95d..2e88112 100644 --- a/Include/py_curses.h +++ b/Include/py_curses.h @@ -7,7 +7,7 @@ ** On Mac OS X 10.2 [n]curses.h and stdlib.h use different guards ** against multiple definition of wchar_t. */ -#ifdef _BSD_WCHAR_T_DEFINED_ +#ifdef _BSD_WCHAR_T_DEFINED_ #define _WCHAR_T #endif @@ -22,7 +22,7 @@ ** On FreeBSD, [n]curses.h and stdlib.h/wchar.h use different guards ** against multiple definition of wchar_t and wint_t. */ -#ifdef _XOPEN_SOURCE_EXTENDED +#ifdef _XOPEN_SOURCE_EXTENDED #ifndef __FreeBSD_version #include <osreldate.h> #endif @@ -48,10 +48,6 @@ #include <ncurses.h> #else #include <curses.h> -#ifdef HAVE_TERM_H -/* for tigetstr, which is not declared in SysV curses */ -#include <term.h> -#endif #endif #ifdef HAVE_NCURSES_H @@ -74,12 +70,12 @@ extern "C" { /* Type declarations */ typedef struct { - PyObject_HEAD - WINDOW *win; - char *encoding; + PyObject_HEAD + WINDOW *win; + char *encoding; } PyCursesWindowObject; -#define PyCursesWindow_Check(v) (Py_TYPE(v) == &PyCursesWindow_Type) +#define PyCursesWindow_Check(v) (Py_TYPE(v) == &PyCursesWindow_Type) #define PyCurses_CAPSULE_NAME "_curses._C_API" |