summaryrefslogtreecommitdiffstats
path: root/src/tools/moc
diff options
context:
space:
mode:
authorKevin Kofler <Kevin@tigcc.ticalc.org>2012-11-25 16:20:00 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-25 17:23:54 (GMT)
commita6305580b27f0bf1d268b5a3531c8332a57c3864 (patch)
treec1245152e3a1e8b3c6e36494fd597f8877451477 /src/tools/moc
parent85e95859047d2c198e495cd4cb6a4352df76e6d4 (diff)
downloadQt-a6305580b27f0bf1d268b5a3531c8332a57c3864.zip
Qt-a6305580b27f0bf1d268b5a3531c8332a57c3864.tar.gz
Qt-a6305580b27f0bf1d268b5a3531c8332a57c3864.tar.bz2
Fix moc from choking on boost headers.
Fixes several build failures with boost >= 1.48, for example the kdepim build: https://bugs.kde.org/show_bug.cgi?id=304111 Task-number: QTBUG-22829 Change-Id: Ic37a5290955fbfd18894a228cc9d57615edddea6 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/tools/moc')
-rw-r--r--src/tools/moc/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/moc/main.cpp b/src/tools/moc/main.cpp
index 33344fc..f558a5e 100644
--- a/src/tools/moc/main.cpp
+++ b/src/tools/moc/main.cpp
@@ -187,6 +187,10 @@ int runMoc(int _argc, char **_argv)
Moc moc;
pp.macros["Q_MOC_RUN"];
pp.macros["__cplusplus"];
+
+ // Workaround a bug while parsing the boost/type_traits/has_operator.hpp header. See QTBUG-22829
+ pp.macros["BOOST_TT_HAS_OPERATOR_HPP_INCLUDED"];
+
QByteArray filename;
QByteArray output;
FILE *in = 0;