diff options
author | David Walter Seikel | 2012-03-14 11:57:45 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-03-14 11:57:45 +1000 |
commit | e3fcedc0ddbbdc4fe3b1faa0c46cdf77bb4ea1a9 (patch) | |
tree | 18637bf2a38f4815fafa5de5e812714439ae1672 /linden/indra/llui | |
parent | Fix http://redmine.kokuaviewer.org/issues/1126 and as a bonus, now using blow... (diff) | |
download | meta-impy-e3fcedc0ddbbdc4fe3b1faa0c46cdf77bb4ea1a9.zip meta-impy-e3fcedc0ddbbdc4fe3b1faa0c46cdf77bb4ea1a9.tar.gz meta-impy-e3fcedc0ddbbdc4fe3b1faa0c46cdf77bb4ea1a9.tar.bz2 meta-impy-e3fcedc0ddbbdc4fe3b1faa0c46cdf77bb4ea1a9.tar.xz |
Apply various Mac build patches from Mimika Oh and Nemurimasu Neiro to fix up http://redmine.kokuaviewer.org/issues/598 and http://redmine.kokuaviewer.org/issues/602
Diffstat (limited to 'linden/indra/llui')
-rw-r--r-- | linden/indra/llui/llresmgr.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/linden/indra/llui/llresmgr.cpp b/linden/indra/llui/llresmgr.cpp index 22610ca..a16cfdf 100644 --- a/linden/indra/llui/llresmgr.cpp +++ b/linden/indra/llui/llresmgr.cpp | |||
@@ -266,8 +266,13 @@ std::string LLResMgr::getMonetaryString( S32 input ) const | |||
266 | default: // Unknown -- use the US defaults. | 266 | default: // Unknown -- use the US defaults. |
267 | case LLLOCALE_USA: | 267 | case LLLOCALE_USA: |
268 | case LLLOCALE_UK: // UK ends up being the same as US for the items used here. | 268 | case LLLOCALE_UK: // UK ends up being the same as US for the items used here. |
269 | fakeconv.negative_sign = "-"; | 269 | // Mac OS X 10.6 SDK's struct lconv contains "char *" not |
270 | fakeconv.mon_grouping = "\x03\x03\x00"; // commas every 3 digits | 270 | // "const char *" so these char arrays work around the error |
271 | // this causes in GCC 4.2, even though they won't be modified. | ||
272 | static char negative_sign[] = "-"; | ||
273 | static char mon_grouping[] = "\x03\x03\x00"; | ||
274 | fakeconv.negative_sign = negative_sign; | ||
275 | fakeconv.mon_grouping = mon_grouping; // commas every 3 digits | ||
271 | fakeconv.n_sign_posn = 1; // negative sign before the string | 276 | fakeconv.n_sign_posn = 1; // negative sign before the string |
272 | break; | 277 | break; |
273 | } | 278 | } |