diff options
author | Jacek Antonelli | 2009-05-24 02:59:02 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-05-24 02:59:08 -0500 |
commit | 811454f47ea1f3c5cb8971f0fed0959b18bd0747 (patch) | |
tree | 1b8689df2dc8857cdc5a956a5233d5bf94b5c8d7 /linden/indra/llmedia | |
parent | Second Life viewer sources 1.23.0-RC (diff) | |
download | meta-impy-811454f47ea1f3c5cb8971f0fed0959b18bd0747.zip meta-impy-811454f47ea1f3c5cb8971f0fed0959b18bd0747.tar.gz meta-impy-811454f47ea1f3c5cb8971f0fed0959b18bd0747.tar.bz2 meta-impy-811454f47ea1f3c5cb8971f0fed0959b18bd0747.tar.xz |
Second Life viewer sources 1.23.1-RC
Diffstat (limited to 'linden/indra/llmedia')
-rw-r--r-- | linden/indra/llmedia/llmediaimplllmozlib.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/linden/indra/llmedia/llmediaimplllmozlib.cpp b/linden/indra/llmedia/llmediaimplllmozlib.cpp index 689d4b4..7222d19 100644 --- a/linden/indra/llmedia/llmediaimplllmozlib.cpp +++ b/linden/indra/llmedia/llmediaimplllmozlib.cpp | |||
@@ -50,9 +50,9 @@ | |||
50 | #include "GL/gl.h" | 50 | #include "GL/gl.h" |
51 | #endif | 51 | #endif |
52 | 52 | ||
53 | #if LL_LINUX | 53 | #if defined(LL_LINUX) || defined(WIN32) |
54 | #include <locale.h> | 54 | #include <locale.h> |
55 | #endif | 55 | #endif // defined(LL_LINUX) || defined(WIN32) |
56 | 56 | ||
57 | #include <iostream> | 57 | #include <iostream> |
58 | 58 | ||
@@ -90,23 +90,23 @@ LLMediaImplLLMozLib::LLMediaImplLLMozLib() : | |||
90 | // (static) super-initialization - called once at application startup | 90 | // (static) super-initialization - called once at application startup |
91 | bool LLMediaImplLLMozLib::startup( LLMediaManagerData* init_data ) | 91 | bool LLMediaImplLLMozLib::startup( LLMediaManagerData* init_data ) |
92 | { | 92 | { |
93 | #if LL_LINUX | 93 | #if defined(LL_LINUX) || defined(WIN32) |
94 | // Yuck, Mozilla's GTK callbacks play with the locale - push/pop | 94 | // Yuck, Mozilla's GTK callbacks play with the locale - push/pop |
95 | // the locale to protect it, as exotic/non-C locales | 95 | // the locale to protect it, as exotic/non-C locales |
96 | // causes our code lots of general critical weirdness | 96 | // causes our code lots of general critical weirdness |
97 | // and crashness. (SL-35450) | 97 | // and crashness. (SL-35450) |
98 | static std::string saved_locale; | 98 | static std::string saved_locale; |
99 | saved_locale = setlocale(LC_ALL, NULL); | 99 | saved_locale = setlocale(LC_ALL, NULL); |
100 | #endif // LL_LINUX | 100 | #endif // defined(LL_LINUX) || defined(WIN32) |
101 | 101 | ||
102 | bool result = LLMozLib::getInstance()->init( init_data->getBrowserApplicationDir(), | 102 | bool result = LLMozLib::getInstance()->init( init_data->getBrowserApplicationDir(), |
103 | init_data->getBrowserComponentDir(), | 103 | init_data->getBrowserComponentDir(), |
104 | init_data->getBrowserProfileDir(), | 104 | init_data->getBrowserProfileDir(), |
105 | init_data->getBrowserParentWindow() ); | 105 | init_data->getBrowserParentWindow() ); |
106 | 106 | ||
107 | #if LL_LINUX | 107 | #if defined(LL_LINUX) || defined(WIN32) |
108 | setlocale(LC_ALL, saved_locale.c_str() ); | 108 | setlocale(LC_ALL, saved_locale.c_str() ); |
109 | #endif // LL_LINUX | 109 | #endif // defined(LL_LINUX) || defined(WIN32) |
110 | 110 | ||
111 | return result; | 111 | return result; |
112 | } | 112 | } |
@@ -139,10 +139,10 @@ bool LLMediaImplLLMozLib::init() | |||
139 | if ( mWindowId ) | 139 | if ( mWindowId ) |
140 | return false; | 140 | return false; |
141 | 141 | ||
142 | #if LL_LINUX | 142 | #if defined(LL_LINUX) || defined(WIN32) |
143 | static std::string saved_locale; | 143 | static std::string saved_locale; |
144 | saved_locale = setlocale(LC_ALL, NULL); | 144 | saved_locale = setlocale(LC_ALL, NULL); |
145 | #endif // LL_LINUX | 145 | #endif // defined(LL_LINUX) || defined(WIN32) |
146 | 146 | ||
147 | mWindowId = LLMozLib::getInstance()->createBrowserWindow( mBrowserWindowWidth, mBrowserWindowHeight ); | 147 | mWindowId = LLMozLib::getInstance()->createBrowserWindow( mBrowserWindowWidth, mBrowserWindowHeight ); |
148 | 148 | ||
@@ -162,9 +162,9 @@ bool LLMediaImplLLMozLib::init() | |||
162 | // set media depth now we have created a browser window and know what it is | 162 | // set media depth now we have created a browser window and know what it is |
163 | setMediaDepth( LLMozLib::getInstance()->getBrowserDepth( mWindowId ) ); | 163 | setMediaDepth( LLMozLib::getInstance()->getBrowserDepth( mWindowId ) ); |
164 | 164 | ||
165 | #if LL_LINUX | 165 | #if defined(LL_LINUX) || defined(WIN32) |
166 | setlocale(LC_ALL, saved_locale.c_str() ); | 166 | setlocale(LC_ALL, saved_locale.c_str() ); |
167 | #endif // LL_LINUX | 167 | #endif // defined(LL_LINUX) || defined(WIN32) |
168 | 168 | ||
169 | return true; | 169 | return true; |
170 | } | 170 | } |