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

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