aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llresmgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llui/llresmgr.cpp9
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 }