From: Enrico Forestieri Date: Tue, 12 May 2009 22:04:26 +0000 (+0000) Subject: MSVC does not define WIN32 but _WIN32. X-Git-Tag: 2.0.0~6589 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=50ddeeb77e75459bf99e6d0232131069a97210de;p=features.git MSVC does not define WIN32 but _WIN32. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29650 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/support/Systemcall.cpp b/src/support/Systemcall.cpp index ec3f5a2258..281d6d871f 100644 --- a/src/support/Systemcall.cpp +++ b/src/support/Systemcall.cpp @@ -60,7 +60,7 @@ int Systemcall::startscript(Starttype how, string const & what) #else QString cmd = QString::fromLocal8Bit(what.c_str()); QProcess * process = new QProcess; -#ifndef WIN32 +#ifndef _WIN32 if (isatty(1)) process->setStandardOutputFile(toqstr("/dev/stdout")); if (isatty(2)) @@ -92,7 +92,7 @@ int Systemcall::startscript(Starttype how, string const & what) LYXERR0("state " << process->state()); LYXERR0("status " << process->exitStatus()); } -#ifdef WIN32 +#ifdef _WIN32 cout << fromqstr(QString::fromLocal8Bit(process->readAllStandardOutput().data())) << endl; cerr << fromqstr(QString::fromLocal8Bit(process->readAllStandardError().data())) << endl; #endif