From 3cb370417609c2e235bd6caf1c4ca9aea663d70d Mon Sep 17 00:00:00 2001 From: Tim Ruehsen Date: Wed, 18 Jun 2014 14:51:33 +0200 Subject: [PATCH] fixed compile issue with older libicu versions --- tools/psl.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/psl.c b/tools/psl.c index 7d5db0c..5a6a9cc 100644 --- a/tools/psl.c +++ b/tools/psl.c @@ -36,6 +36,12 @@ #include #include #include + +#ifdef WITH_LIBICU +# include +# include +#endif + #include static void usage(int err, FILE* f) @@ -213,8 +219,6 @@ int main(int argc, const char *const *argv) printf("builtin SHA1 file hash: %s\n", psl_builtin_sha1sum()); #ifdef WITH_LIBICU - #include - #include printf("uloc_getDefault=%s\n", uloc_getDefault()); printf("ucnv_getDefaultName=%s\n", ucnv_getDefaultName()); #endif