improved windows functionality

This commit is contained in:
itsmattkc
2019-10-16 22:32:51 +11:00
parent c2ae2e5d9e
commit 578345693b
2 changed files with 14 additions and 0 deletions
+6
View File
@@ -25,4 +25,10 @@ void DebugHandler(QtMsgType type, const QMessageLogContext &context, const QStri
}
fprintf(stderr, "[%s] %s (%s:%u)\n", msg_type, localMsg.constData(), context.function, context.line);
#ifdef Q_OS_WINDOWS
// Windows still seems to buffer stderr and we want to see debug messages immediately, so here we make sure each line
// is flushed
fflush(stderr);
#endif
}