diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-02-15 23:47:16 (GMT) |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-02-16 22:57:14 (GMT) |
commit | b7406af04ec83b3e8d712b42a87f6c29121b998d (patch) | |
tree | 896336e101d1408942bdb2e2919911482ecee7fc /tests/auto/qtextstream | |
parent | 757779ae3d27c260214f88411de81e1c32a688b5 (diff) | |
download | Qt-b7406af04ec83b3e8d712b42a87f6c29121b998d.zip Qt-b7406af04ec83b3e8d712b42a87f6c29121b998d.tar.gz Qt-b7406af04ec83b3e8d712b42a87f6c29121b998d.tar.bz2 |
Fixed compile of these tests when Qt is configured with -qtnamespace
Diffstat (limited to 'tests/auto/qtextstream')
-rw-r--r-- | tests/auto/qtextstream/tst_qtextstream.cpp | 7 |
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 |