Commit 530b82e7 authored by Matti Picus's avatar Matti Picus
Browse files

wint_t is not defined in all versions of curses

parent 3ad0fbece144
...@@ -96,8 +96,6 @@ typedef unsigned char bool; ...@@ -96,8 +96,6 @@ typedef unsigned char bool;
typedef unsigned long... chtype; typedef unsigned long... chtype;
typedef chtype attr_t; typedef chtype attr_t;
typedef int... wint_t;
typedef struct typedef struct
{ {
short id; /* ID to distinguish multiple devices */ short id; /* ID to distinguish multiple devices */
...@@ -376,6 +374,7 @@ void _m_getsyx(int *yx); ...@@ -376,6 +374,7 @@ void _m_getsyx(int *yx);
if version > (5, 7): if version > (5, 7):
ffi.cdef(""" ffi.cdef("""
typedef int... wint_t;
int wget_wch(WINDOW *, wint_t *); int wget_wch(WINDOW *, wint_t *);
int mvwget_wch(WINDOW *, int, int, wint_t *); int mvwget_wch(WINDOW *, int, int, wint_t *);
int unget_wch(const wchar_t); int unget_wch(const wchar_t);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment