qtbase-moc-macros.patch 647 B

1234567891011121314151617
  1. diff --git a/src/tools/moc/main.cpp b/src/tools/moc/main.cpp
  2. index 1cb383c9..6bfdee55 100644
  3. --- a/src/tools/moc/main.cpp
  4. +++ b/src/tools/moc/main.cpp
  5. @@ -230,6 +230,11 @@ int runMoc(int argc, char **argv)
  6. Moc moc;
  7. pp.macros["Q_MOC_RUN"];
  8. pp.macros["__cplusplus"];
  9. + pp.macros["_SYS_SYSMACROS_H_OUTER"];
  10. + Macro macro;
  11. + macro.symbols = Preprocessor::tokenize(QByteArray::number(Q_PROCESSOR_WORDSIZE*8), 1, Preprocessor::TokenizeDefine);
  12. + macro.symbols.removeLast(); // remove the EOF symbol
  13. + pp.macros.insert("__WORDSIZE", macro);
  14. // Don't stumble over GCC extensions
  15. Macro dummyVariadicFunctionMacro;