From 9fd2d8f39e4c78831226c58aae6277576809ded7 Mon Sep 17 00:00:00 2001 From: seleznevae Date: Sun, 25 Aug 2019 10:30:28 +0300 Subject: [PATCH] [F] Fixed compilation errors --- tests/wb_tests/test_string_buffer.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/wb_tests/test_string_buffer.c b/tests/wb_tests/test_string_buffer.c index fd2f020..b02d92d 100644 --- a/tests/wb_tests/test_string_buffer.c +++ b/tests/wb_tests/test_string_buffer.c @@ -616,6 +616,7 @@ static void test_print_n_strings_(const char *str, size_t n) destroy_string_buffer(buffer); } +#ifdef FT_HAVE_WCHAR { string_buffer_t *buffer = create_string_buffer(200, W_CHAR_BUF); conv_context_t cntx; @@ -627,8 +628,9 @@ static void test_print_n_strings_(const char *str, size_t n) assert_true(cntx.u.buf - cntx.buf_origin == (ptrdiff_t)sizeof(wchar_t) * sz); destroy_string_buffer(buffer); } +#endif /* FT_HAVE_WCHAR */ - +#ifdef FT_HAVE_UTF8 { string_buffer_t *buffer = create_string_buffer(200, UTF8_BUF); conv_context_t cntx; @@ -640,6 +642,7 @@ static void test_print_n_strings_(const char *str, size_t n) assert_true(cntx.u.buf - cntx.buf_origin == (ptrdiff_t)sz); destroy_string_buffer(buffer); } +#endif /* FT_HAVE_UTF8 */ } void test_print_n_strings(void) {