From: David Griffith Date: Tue, 23 Jul 2019 06:55:06 +0000 (-0700) Subject: Reorder ifdefs to prevent redefinition of wint_t problems in NetBSD. X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=7adf969c7fd6e4a185390db77de325a0261f58b0;p=liskon_frotz.git Reorder ifdefs to prevent redefinition of wint_t problems in NetBSD. --- diff --git a/src/curses/ux_input.c b/src/curses/ux_input.c index 5814427..90ae508 100644 --- a/src/curses/ux_input.c +++ b/src/curses/ux_input.c @@ -33,27 +33,23 @@ #include #include -#ifdef USE_UTF8 -#include -#else -#ifndef wint_t -typedef unsigned int wint_t; -#endif -#endif - #ifdef USE_NCURSES_H #include #else #include #endif +#include "ux_frotz.h" + +#ifdef USE_UTF8 +#include +#endif + #ifndef NO_SOUND #include "ux_sema.h" ux_sem_t sound_done; #endif -#include "ux_frotz.h" - static int start_of_prev_word(int, const zchar*); static int end_of_next_word(int, const zchar*, int); @@ -178,7 +174,11 @@ void os_tick() static int unix_read_char(int extkeys) { +#ifdef USE_UTF8 wint_t c; +#else + int c; +#endif int sel, fd = fileno(stdin); fd_set rsel; struct timeval tval, *t_left, maxwait;