fixed compile issue with older libicu versions

This commit is contained in:
Tim Ruehsen 2014-06-18 14:51:33 +02:00
parent 8c0e8a9283
commit 3cb3704176
1 changed files with 6 additions and 2 deletions

View File

@ -36,6 +36,12 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <ctype.h> #include <ctype.h>
#ifdef WITH_LIBICU
# include <unicode/uloc.h>
# include <unicode/ucnv.h>
#endif
#include <libpsl.h> #include <libpsl.h>
static void usage(int err, FILE* f) 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()); printf("builtin SHA1 file hash: %s\n", psl_builtin_sha1sum());
#ifdef WITH_LIBICU #ifdef WITH_LIBICU
#include <unicode/uloc.h>
#include <unicode/ucnv.h>
printf("uloc_getDefault=%s\n", uloc_getDefault()); printf("uloc_getDefault=%s\n", uloc_getDefault());
printf("ucnv_getDefaultName=%s\n", ucnv_getDefaultName()); printf("ucnv_getDefaultName=%s\n", ucnv_getDefaultName());
#endif #endif