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

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