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

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