Scope-eye.net Git Repository
/
liskon_frotz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0bdd6d
)
Fix trouble with wint_t being redefined with NetBSD.
author
David Griffith
<dave@661.org>
Mon, 15 Jul 2019 04:52:56 +0000
(21:52 -0700)
committer
David Griffith
<dave@661.org>
Mon, 15 Jul 2019 04:52:56 +0000
(21:52 -0700)
src/curses/ux_input.c
patch
|
blob
|
history
diff --git
a/src/curses/ux_input.c
b/src/curses/ux_input.c
index 9a23891dfe15ab019529dd52460dec6fd66f8fb8..22ceb40c00dfd0afa4423274d5951e458a417016 100644
(file)
--- a/
src/curses/ux_input.c
+++ b/
src/curses/ux_input.c
@@
-33,6
+33,14
@@
#include <sys/time.h>
#include <sys/select.h>
+#ifdef USE_UTF8
+#include <wchar.h>
+#else
+#ifdef wint_t
+typedef unsigned int wint_t;
+#endif
+#endif
+
#ifdef USE_NCURSES_H
#include <ncurses.h>
#else
@@
-71,9
+79,6
@@
extern bool is_terminator (zchar);
extern void read_string (int, zchar *);
extern int completion (const zchar *, zchar *);
-#ifndef _WINT_T
-typedef unsigned int wint_t;
-#endif
/*
* unix_set_global_timeout