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

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