From b5549bfda03d789db352d33ad6f46a6ffe9a737a Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Tue, 28 Aug 2007 18:03:07 +0000 Subject: add -DWIN32 to fix compilation on windows when we add #ifdef Q_OS_WIN on .h file as in akonadi svn path=/trunk/KDE/kdelibs/; revision=705841 --- automoc/kde4automoc.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'automoc/kde4automoc.cpp') 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()) -- cgit v1.2.1