diff options
| -rw-r--r-- | automoc/kde4automoc.cpp | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/automoc/kde4automoc.cpp b/automoc/kde4automoc.cpp index 9983011e..b5368b1a 100644 --- a/automoc/kde4automoc.cpp +++ b/automoc/kde4automoc.cpp @@ -295,7 +295,10 @@ void AutoMoc::generateMoc(const QString &sourceFile, const QString &mocFileName)          QProcess *mocProc = new QProcess;          mocProc->setProcessChannelMode(QProcess::ForwardedChannels);          QStringList args(mocIncludes); -        args << "-o" << mocFilePath << sourceFile; +#ifdef Q_OS_WIN +	args << "-DWIN32"; +#endif +	args << "-o" << mocFilePath << sourceFile;          //qDebug() << "executing: " << mocExe << args;          mocProc->start(mocExe, args, QIODevice::NotOpen);          if (mocProc->waitForStarted()) | 
