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

68351b
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
68351b
--- qtbase-opensource-src-5.7.1/src/tools/moc/main.cpp.moc_WORDSIZE	2016-12-01 02:17:04.000000000 -0600
68351b
+++ qtbase-opensource-src-5.7.1/src/tools/moc/main.cpp	2016-12-08 12:37:28.931589338 -0600
68351b
@@ -179,6 +179,11 @@ int runMoc(int argc, char **argv)
2d2b1a
     Moc moc;
2d2b1a
     pp.macros["Q_MOC_RUN"];
2d2b1a
     pp.macros["__cplusplus"];
68351b
+    pp.macros["_SYS_SYSMACROS_H_OUTER"];
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;