diff --git a/compiler.cpp b/compiler.cpp index 8477421..d66c5f2 100644 --- a/compiler.cpp +++ b/compiler.cpp @@ -175,7 +175,6 @@ int Compiler::compileAndExecute(const QString &cc, const QStringList &options, c exe.start(aoutName(), cppsArgs); exe.waitForStarted(); -#ifndef Q_OS_WIN auto readfunc = [&]() { // read and write to the process std::string s; @@ -187,6 +186,7 @@ int Compiler::compileAndExecute(const QString &cc, const QStringList &options, c } }; +#ifndef Q_OS_WIN QSocketNotifier notifier(fileno(stdin), QSocketNotifier::Read); QObject::connect(¬ifier, &QSocketNotifier::activated, readfunc); #endif