diff options
author | rubidium <rubidium@openttd.org> | 2015-08-09 12:33:27 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2015-08-09 12:33:27 +0000 |
commit | 69fac508c386f660be4428a1e58da30ec0acd9a1 (patch) | |
tree | 7a0fd9a382b0e7dec5966bc7e50f249021d9f91a /src/crashlog.cpp | |
parent | bdf090b406e87ff2d0a3f3c5b6dc92b4c232dc3c (diff) | |
download | openttd-69fac508c386f660be4428a1e58da30ec0acd9a1.tar.xz |
(svn r27367) -Codechange: make a distinction between the layouting part of ICU (lx) or the sorting/collation part of ICU (i18n)
Diffstat (limited to 'src/crashlog.cpp')
-rw-r--r-- | src/crashlog.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/crashlog.cpp b/src/crashlog.cpp index e8290a7c3..7ddc2131f 100644 --- a/src/crashlog.cpp +++ b/src/crashlog.cpp @@ -196,9 +196,9 @@ char *CrashLog::LogConfiguration(char *buffer, const char *last) const # include <ft2build.h> # include FT_FREETYPE_H #endif /* WITH_FREETYPE */ -#ifdef WITH_ICU +#if defined(WITH_ICU_LAYOUT) || defined(WITH_ICU_SORT) # include <unicode/uversion.h> -#endif /* WITH_ICU */ +#endif /* WITH_ICU_SORT || WITH_ICU_LAYOUT */ #ifdef WITH_LZMA # include <lzma.h> #endif @@ -241,14 +241,19 @@ char *CrashLog::LogLibraries(char *buffer, const char *last) const buffer += seprintf(buffer, last, " FreeType: %d.%d.%d\n", major, minor, patch); #endif /* WITH_FREETYPE */ -#ifdef WITH_ICU +#if defined(WITH_ICU_LAYOUT) || defined(WITH_ICU_SORT) /* 4 times 0-255, separated by dots (.) and a trailing '\0' */ char buf[4 * 3 + 3 + 1]; UVersionInfo ver; u_getVersion(ver); u_versionToString(ver, buf); - buffer += seprintf(buffer, last, " ICU: %s\n", buf); -#endif /* WITH_ICU */ +#ifdef WITH_ICU_SORT + buffer += seprintf(buffer, last, " ICU i18n: %s\n", buf); +#endif +#ifdef WITH_ICU_LAYOUT + buffer += seprintf(buffer, last, " ICU lx: %s\n", buf); +#endif +#endif /* WITH_ICU_SORT || WITH_ICU_LAYOUT */ #ifdef WITH_LZMA buffer += seprintf(buffer, last, " LZMA: %s\n", lzma_version_string()); |