[pypy-commit] pypy default: wint_t is not defined in all versions of curses
mattip
pypy.commits at gmail.com
Fri Nov 15 07:17:08 EST 2019
Author: Matti Picus <matti.picus at gmail.com>
Branch:
Changeset: r98055:e36c9b5c55a7
Date: 2019-11-15 07:15 -0500
http://bitbucket.org/pypy/pypy/changeset/e36c9b5c55a7/
Log: wint_t is not defined in all versions of curses
diff --git a/lib_pypy/_curses_build.py b/lib_pypy/_curses_build.py
--- a/lib_pypy/_curses_build.py
+++ b/lib_pypy/_curses_build.py
@@ -96,8 +96,6 @@
typedef unsigned long... chtype;
typedef chtype attr_t;
-typedef int... wint_t;
-
typedef struct
{
short id; /* ID to distinguish multiple devices */
@@ -376,6 +374,7 @@
if version > (5, 7):
ffi.cdef("""
+typedef int... wint_t;
int wget_wch(WINDOW *, wint_t *);
int mvwget_wch(WINDOW *, int, int, wint_t *);
int unget_wch(const wchar_t);
More information about the pypy-commit
mailing list