Fix build with MinGW

I honestly can't tell why this is now needed, it seems to be related to
an update in the MinGW headers since I couldn't build previous versions
of the creator anymore too.

This pattern is already often used.

Change-Id: I81adfa2dc8fb4606b0b47a4ade5d1f5db054df9a
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Björn Schäpers
2022-09-01 21:46:50 +02:00
committed by Björn Schäpers
parent 8276bd265b
commit 5aa8c55f14
3 changed files with 9 additions and 0 deletions

View File

@@ -13,6 +13,9 @@
#include <unistd.h>
#elif defined(Q_OS_WIN)
#include "winutils.h"
#ifdef QTCREATOR_PCH_H
#define CALLBACK WINAPI
#endif
#include <windows.h>
#include <tlhelp32.h>
#include <psapi.h>

View File

@@ -6,6 +6,9 @@
#ifdef Q_OS_WIN
#include <QTextStream>
#ifdef QTCREATOR_PCH_H
#define CALLBACK WINAPI
#endif
#include <windows.h>
#include <utils/winutils.h>
#include <tlhelp32.h>

View File

@@ -23,6 +23,9 @@
#include <registryaccess.h>
#ifdef QTCREATOR_PCH_H
#define CALLBACK WINAPI
#endif
#include <windows.h>
#include <psapi.h>