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

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