Blame SOURCES/qtbase-opensource-src-5.6.0-moc_WORDSIZE.patch

2d2b1a
diff -up qtbase-opensource-src-5.6.0-beta/src/tools/moc/main.cpp.moc_WORDSIZE qtbase-opensource-src-5.6.0-beta/src/tools/moc/main.cpp
2d2b1a
--- qtbase-opensource-src-5.6.0-beta/src/tools/moc/main.cpp.moc_WORDSIZE	2015-12-04 18:05:24.000000000 -0600
2d2b1a
+++ qtbase-opensource-src-5.6.0-beta/src/tools/moc/main.cpp	2015-12-15 20:57:55.554485416 -0600
2d2b1a
@@ -184,6 +184,10 @@ int runMoc(int argc, char **argv)
2d2b1a
     Moc moc;
2d2b1a
     pp.macros["Q_MOC_RUN"];
2d2b1a
     pp.macros["__cplusplus"];
2d2b1a
+    Macro macro;
2d2b1a
+    macro.symbols = Preprocessor::tokenize(QByteArray::number(Q_PROCESSOR_WORDSIZE*8), 1, Preprocessor::TokenizeDefine);
2d2b1a
+    macro.symbols.removeLast(); // remove the EOF symbol
2d2b1a
+    pp.macros.insert("__WORDSIZE", macro);
2d2b1a
 
2d2b1a
     // Don't stumble over GCC extensions
2d2b1a
     Macro dummyVariadicFunctionMacro;