]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/form_driver_w.c
ncurses 5.9 - patch 20141213
[ncurses.git] / test / form_driver_w.c
index 141f517f1f8d006ff12e4b50875195a043f30ec3..3e928af8cc5692aebdff82265b574e5968a04cec 100644 (file)
@@ -31,7 +31,7 @@
  ****************************************************************************/
 
 /*
- * $Id: form_driver_w.c,v 1.11 2014/02/09 22:20:27 tom 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 <test.priv.h>
 
-#if USE_WIDEC_SUPPORT && USE_LIBFORM
+#if USE_WIDEC_SUPPORT && USE_LIBFORM && (defined(NCURSES_VERSION_PATCH) && NCURSES_VERSION_PATCH >= 20131207)
 
 #include <form.h>
 
@@ -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;