summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2009-08-27 15:12:20 (GMT)
committerhjk <qtc-committer@nokia.com>2009-08-27 15:22:57 (GMT)
commit0bab82740e6f0b84c8d70629dd28b9ba66ff9ac9 (patch)
tree8fe3bfd70cef1a9ad6b04572d2635cfcba26d109 /src/corelib/tools
parent162892030766ffe8711888ea9e8d3a368c6a75b2 (diff)
downloadQt-0bab82740e6f0b84c8d70629dd28b9ba66ff9ac9.zip
Qt-0bab82740e6f0b84c8d70629dd28b9ba66ff9ac9.tar.gz
Qt-0bab82740e6f0b84c8d70629dd28b9ba66ff9ac9.tar.bz2
work around a compiler bug (gcc <= 4.0.x) that renders the drop-in version
of QStringBuilder incompilable Reviewed-by: Roberto Raggi
Diffstat (limited to 'src/corelib/tools')
-rw-r--r--src/corelib/tools/qstringbuilder.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/corelib/tools/qstringbuilder.h b/src/corelib/tools/qstringbuilder.h
index a93a638..9be57c5 100644
--- a/src/corelib/tools/qstringbuilder.h
+++ b/src/corelib/tools/qstringbuilder.h
@@ -44,6 +44,12 @@
#include <QtCore/qstring.h>
+#if defined(Q_CC_GNU) && !defined(Q_CC_INTEL)
+# if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ == 0)
+# include <QtCore/qmap.h>
+# endif
+#endif
+
#include <string.h>
QT_BEGIN_HEADER