Blame SOURCES/qtbase-opensource-src-5.7.1-moc_macros.patch

86b2c0
diff -up qtbase-opensource-src-5.7.1/src/tools/moc/main.cpp.moc_WORDSIZE qtbase-opensource-src-5.7.1/src/tools/moc/main.cpp
86b2c0
--- qtbase-opensource-src-5.7.1/src/tools/moc/main.cpp.moc_WORDSIZE	2016-12-01 02:17:04.000000000 -0600
86b2c0
+++ qtbase-opensource-src-5.7.1/src/tools/moc/main.cpp	2016-12-08 12:37:28.931589338 -0600
86b2c0
@@ -179,6 +179,11 @@ int runMoc(int argc, char **argv)
86b2c0
     Moc moc;
86b2c0
     pp.macros["Q_MOC_RUN"];
86b2c0
     pp.macros["__cplusplus"];
86b2c0
+    pp.macros["_SYS_SYSMACROS_H_OUTER"];
86b2c0
+    Macro macro;
86b2c0
+    macro.symbols = Preprocessor::tokenize(QByteArray::number(Q_PROCESSOR_WORDSIZE*8), 1, Preprocessor::TokenizeDefine);
86b2c0
+    macro.symbols.removeLast(); // remove the EOF symbol
86b2c0
+    pp.macros.insert("__WORDSIZE", macro);
86b2c0
 
86b2c0
     // Don't stumble over GCC extensions
86b2c0
     Macro dummyVariadicFunctionMacro;