diff options
author | Petr Mladek <pmladek@suse.cz> | 2011-04-27 16:01:44 +0200 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2011-04-27 16:01:44 +0200 |
commit | 291a01b8c7a672a02b54448d588177f510096482 (patch) | |
tree | 4874402f33791c3769e8c6ffa06f1b9596093c57 /i18nutil/source/utility | |
parent | 8ea53e8160a3139fa394a065eacd2b6efadf314a (diff) |
i18nutil-glibc-braindamage-workaround.diff: build failure with glibc-2.4
glibc 2.4's langinfo.h does "#define CURRENCY_SYMBOL __CURRENCY_SYMBOL"
which (obviously) breaks UnicodeType::CURRENCY_SYMBOL
Diffstat (limited to 'i18nutil/source/utility')
-rw-r--r-- | i18nutil/source/utility/unicode.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/i18nutil/source/utility/unicode.cxx b/i18nutil/source/utility/unicode.cxx index 83dd81b406cf..f04faa5846cf 100644 --- a/i18nutil/source/utility/unicode.cxx +++ b/i18nutil/source/utility/unicode.cxx @@ -31,6 +31,11 @@ #include <i18nutil/unicode.hxx> #include "unicode_data.h" +// Workaround for glibc braindamage: +// glibc 2.4's langinfo.h does "#define CURRENCY_SYMBOL __CURRENCY_SYMBOL" +// which (obviously) breaks UnicodeType::CURRENCY_SYMBOL +#undef CURRENCY_SYMBOL + using namespace ::com::sun::star::i18n; static ScriptTypeList defaultTypeList[] = { |