Chromium Code Reviews| Index: src/icu_util.cc |
| diff --git a/src/icu_util.cc b/src/icu_util.cc |
| index a6f0453fc23e95145b1965eb3688e6968551f7f4..bfd1f266be1feb87c6e682a6df742dcd1d5f1779 100644 |
| --- a/src/icu_util.cc |
| +++ b/src/icu_util.cc |
| @@ -50,7 +50,13 @@ bool InitializeICUDefaultLocation(const char* exec_path, |
| return InitializeICU(icu_data_file); |
| } |
| char* icu_data_file_default; |
| +#if __BYTE_ORDER == __LITTLE_ENDIAN |
|
Michael Achenbach
2016/07/27 08:58:03
nit: Maybe synonym, I don't know, but in other pla
miran.karic
2016/07/27 13:32:15
After including "src/base/build_config.h" this wor
|
| RelativePath(&icu_data_file_default, exec_path, "icudtl.dat"); |
| +#elif __BYTE_ORDER == __BIG_ENDIAN |
| + RelativePath(&icu_data_file_default, exec_path, "icudtb.dat"); |
| +#else |
| +#error Unknown endianness |
| +#endif |
| bool result = InitializeICU(icu_data_file_default); |
| free(icu_data_file_default); |
| return result; |