summaryrefslogtreecommitdiffstats
path: root/tests/auto/qtextstream/tst_qtextstream.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-02-22 09:00:29 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-02-22 09:00:29 (GMT)
commit6d23a6d0a2954a4895dd5c1cfade28eab5a2874e (patch)
treef2f1709febef96b8eec5fcf5f450abe50759a4c7 /tests/auto/qtextstream/tst_qtextstream.cpp
parent746be2ba8d54e2c9803af6a6ba3cc0b6bf1da258 (diff)
parente2f90ecdde9550986df1539aa88eb5fc41d939e1 (diff)
downloadQt-6d23a6d0a2954a4895dd5c1cfade28eab5a2874e.zip
Qt-6d23a6d0a2954a4895dd5c1cfade28eab5a2874e.tar.gz
Qt-6d23a6d0a2954a4895dd5c1cfade28eab5a2874e.tar.bz2
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-qml
Diffstat (limited to 'tests/auto/qtextstream/tst_qtextstream.cpp')
-rw-r--r--tests/auto/qtextstream/tst_qtextstream.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/auto/qtextstream/tst_qtextstream.cpp b/tests/auto/qtextstream/tst_qtextstream.cpp
index 8ff6bee..9146be2 100644
--- a/tests/auto/qtextstream/tst_qtextstream.cpp
+++ b/tests/auto/qtextstream/tst_qtextstream.cpp
@@ -4308,10 +4308,15 @@ void tst_QTextStream::int_write_with_locale()
// ------------------------------------------------------------------------------
// 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