aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/mozilla-embed-single.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'embed/mozilla/mozilla-embed-single.cpp')
-rw-r--r--embed/mozilla/mozilla-embed-single.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp
index 5c1f83040..f39fc4feb 100644
--- a/embed/mozilla/mozilla-embed-single.cpp
+++ b/embed/mozilla/mozilla-embed-single.cpp
@@ -19,7 +19,7 @@
*/
#ifdef HAVE_CONFIG_H
-#include <config.h>
+#include "config.h"
#endif
#include "glib.h"
@@ -384,9 +384,14 @@ getUILang (nsAString& aUILang)
return NS_ERROR_FAILURE;
}
+#if MOZILLA_SNAPSHOT >= 12
+ result = localeService->GetLocaleComponentForUserAgent (aUILang);
+#else
nsXPIDLString uiLang;
result = localeService->GetLocaleComponentForUserAgent (getter_Copies(uiLang));
aUILang = uiLang;
+#endif
+
if (NS_FAILED (result))
{
g_warning ("Could not determine locale!\n");