Use lowercase for Windows header for supporting cross-compilation

Linux mingw uses lowercase headers, so cross-building on Linux for Windows
target must use the correct form. Windows is case-insensitive, so it won't
affect host-native builds.

Change-Id: Ic2140412bb367bbce83b5e2546d70e0936928c5c
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Orgad Shaneh
2021-09-24 17:07:56 +03:00
committed by Orgad Shaneh
parent a4141b8d14
commit f2f1fc8601
7 changed files with 7 additions and 7 deletions

View File

@@ -41,7 +41,7 @@
#if defined(Q_OS_UNIX) #if defined(Q_OS_UNIX)
#include <unistd.h> #include <unistd.h>
#elif defined(Q_OS_WIN) #elif defined(Q_OS_WIN)
#include <Windows.h> #include <windows.h>
#endif #endif
namespace QmlDesigner { namespace QmlDesigner {

View File

@@ -54,7 +54,7 @@
#endif #endif
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
#include <Windows.h> #include <windows.h>
#endif #endif
namespace { namespace {

View File

@@ -31,7 +31,7 @@
#include "stringutils.h" #include "stringutils.h"
#include "symbolgroupvalue.h" #include "symbolgroupvalue.h"
#include <Windows.h> #include <windows.h>
#ifndef _NO_CVCONST_H #ifndef _NO_CVCONST_H
#define _NO_CVCONST_H #define _NO_CVCONST_H
#include <dbghelp.h> #include <dbghelp.h>

View File

@@ -36,7 +36,7 @@
#include <codecvt> #include <codecvt>
#include <iomanip> #include <iomanip>
#include <Windows.h> #include <windows.h>
static const char whiteSpace[] = " \t\r\n"; static const char whiteSpace[] = " \t\r\n";

View File

@@ -54,7 +54,7 @@
#include <QFileDialog> #include <QFileDialog>
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
#include <Windows.h> #include <windows.h>
#endif #endif
using namespace ProjectExplorer; using namespace ProjectExplorer;

View File

@@ -23,7 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#include <Windows.h> #include <windows.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@@ -31,7 +31,7 @@
#include <iostream> #include <iostream>
#include <vector> #include <vector>
#include <cstdio> #include <cstdio>
//#include <Windows.h> //#include <windows.h>
//#include <linux/version.h> //#include <linux/version.h>
#include "dummy.h" #include "dummy.h"
#include "detail/header.h" #include "detail/header.h"