summaryrefslogtreecommitdiffstats
path: root/Include/py_curses.h
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-10-31 11:56:44 (GMT)
committerGitHub <noreply@github.com>2017-10-31 11:56:44 (GMT)
commitbaac01e629d90f63dfde6b5cc433f4bc65c5feeb (patch)
tree88a628d5dfb9ca8d5a3824dd195bc4c83690f1a3 /Include/py_curses.h
parent19f68301a1295a9c30d9f28b8f1479cdcccd75aa (diff)
downloadcpython-baac01e629d90f63dfde6b5cc433f4bc65c5feeb.zip
cpython-baac01e629d90f63dfde6b5cc433f4bc65c5feeb.tar.gz
cpython-baac01e629d90f63dfde6b5cc433f4bc65c5feeb.tar.bz2
bpo-31891: Fix building the curses module on NetBSD. (#4165)
Diffstat (limited to 'Include/py_curses.h')
-rw-r--r--Include/py_curses.h16
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"