--- a/tests/auto/qtextstream/tst_qtextstream.cpp Mon Mar 15 12:43:09 2010 +0200
+++ b/tests/auto/qtextstream/tst_qtextstream.cpp Thu Apr 08 14:19:33 2010 +0300
@@ -4308,10 +4308,15 @@
// ------------------------------------------------------------------------------
// like QTEST_APPLESS_MAIN, but initialising the locale on Unix
+#if defined (Q_OS_UNIX) && !defined (Q_OS_SYMBIAN)
+QT_BEGIN_NAMESPACE
+extern bool qt_locale_initialized;
+QT_END_NAMESPACE
+#endif
+
int main(int argc, char *argv[])
{
#if defined (Q_OS_UNIX) && !defined (Q_OS_SYMBIAN)
- extern bool qt_locale_initialized;
::setlocale(LC_ALL, "");
qt_locale_initialized = true;
#endif