X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fform_driver_w.c;h=3e928af8cc5692aebdff82265b574e5968a04cec;hp=f1ebf6256d51e972bc59f09dafeba894056cab73;hb=58552e8c761a70f8f0bd591fecdf576fa8216e3e;hpb=4f84dbbd027e85fc88e2c6be466b3237141e027e diff --git a/test/form_driver_w.c b/test/form_driver_w.c index f1ebf625..3e928af8 100644 --- a/test/form_driver_w.c +++ b/test/form_driver_w.c @@ -31,7 +31,7 @@ ****************************************************************************/ /* - * $Id: form_driver_w.c,v 1.10 2014/02/01 20:49:39 Gaute.Hope Exp $ + * $Id: form_driver_w.c,v 1.13 2014/08/02 17:24:55 tom Exp $ * * Test form_driver_w (int, int, wchar_t), a wide char aware * replacement of form_driver. @@ -41,7 +41,7 @@ #include -#if USE_WIDEC_SUPPORT && USE_LIBFORM +#if USE_WIDEC_SUPPORT && USE_LIBFORM && (defined(NCURSES_VERSION_PATCH) && NCURSES_VERSION_PATCH >= 20131207) #include @@ -86,7 +86,7 @@ main(void) wint_t ch; int ret = get_wch(&ch); - mvprintw(8, 10, "Got %d (%#x), type: %s", ch, ch, + mvprintw(8, 10, "Got %d (%#x), type: %s", (int) ch, (int) ch, (ret == KEY_CODE_YES) ? "KEY_CODE_YES" : ((ret == OK) @@ -123,7 +123,7 @@ main(void) done = TRUE; break; default: - form_driver_w(my_form, OK, ch); + form_driver_w(my_form, OK, (wchar_t) ch); break; } break;