From: Adam Dickmeiss Date: Wed, 2 Feb 2011 08:20:24 +0000 (+0100) Subject: Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz X-Git-Tag: v4.1.7~8 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=7bfdd9cdcbfd12d6690278c9b56a7ac26b2457e9;hp=222aad8dece12c5a93a4dd8a67899933e4bd875e;p=yaz-moved-to-github.git Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz --- diff --git a/test/test_libstemmer.c b/test/test_libstemmer.c index e657050..a2ea678 100644 --- a/test/test_libstemmer.c +++ b/test/test_libstemmer.c @@ -3,15 +3,17 @@ * See the file LICENSE for details. */ #if HAVE_CONFIG_H -#include +#include "config.h" #endif #include #include -#include #include +#if YAZ_HAVE_ICU +#include + int test_stemmer_stem(yaz_stemmer_p stemmer, const char* to_stem, const char *expected) { struct icu_buf_utf16 *src = icu_buf_utf16_create(0); @@ -36,7 +38,6 @@ int test_stemmer_stem(yaz_stemmer_p stemmer, const char* to_stem, const char *ex } - static void tst(void) { UErrorCode status; @@ -60,11 +61,14 @@ static void tst(void) yaz_stemmer_destroy(stemmer); } +#endif int main (int argc, char **argv) { YAZ_CHECK_INIT(argc, argv); +#if YAZ_HAVE_ICU tst(); +#endif YAZ_CHECK_TERM; }