Windows: Match the name case of included files

Although Windows is case insensitive, and lower case always works, Clang
complains:

Lexical or Preprocessor Issue: warning: non-portable path to file
'<FooBar.h>'; specified path differs in case from file name on disk

Change-Id: I8f94e9fb62f6afec8aa6b9d08a7c78f6ba8a4435
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Alessandro Portale
2018-07-12 11:33:06 +02:00
parent 9edd80770e
commit 1c014ed3d9
28 changed files with 28 additions and 28 deletions

View File

@@ -37,7 +37,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

@@ -41,7 +41,7 @@
#endif #endif
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
#include <windows.h> #include <Windows.h>
#endif #endif
int internalMain(QGuiApplication *application) int internalMain(QGuiApplication *application)

View File

@@ -32,7 +32,7 @@
#include <string> #include <string>
#include <sstream> #include <sstream>
#include <windows.h> #include <Windows.h>
#define KDEXT_64BIT #define KDEXT_64BIT
#pragma warning( disable : 4838 ) #pragma warning( disable : 4838 )
#include <wdbgexts.h> #include <wdbgexts.h>

View File

@@ -27,7 +27,7 @@
#include "theme/theme_p.h" #include "theme/theme_p.h"
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
#include <windows.h> #include <Windows.h>
#endif #endif
#include <QEvent> #include <QEvent>

View File

@@ -39,7 +39,7 @@ QT_END_NAMESPACE
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
# include <QWinEventNotifier> # include <QWinEventNotifier>
# include <windows.h> # include <Windows.h>
#endif #endif
namespace Utils { namespace Utils {

View File

@@ -43,7 +43,7 @@
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
#include <qt_windows.h> #include <qt_windows.h>
#include <shlobj.h> #include <ShlObj.h>
#endif #endif
#ifdef Q_OS_OSX #ifdef Q_OS_OSX

View File

@@ -37,7 +37,7 @@
#endif #endif
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <Windows.h>
#include <shellapi.h> #include <shellapi.h>
#include <wchar.h> #include <wchar.h>
#include <cstdlib> #include <cstdlib>

View File

@@ -26,7 +26,7 @@
#undef _WIN32_WINNT #undef _WIN32_WINNT
#define _WIN32_WINNT 0x0501 /* WinXP, needed for DebugActiveProcessStop() */ #define _WIN32_WINNT 0x0501 /* WinXP, needed for DebugActiveProcessStop() */
#include <windows.h> #include <Windows.h>
#include <shellapi.h> #include <shellapi.h>
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>

View File

@@ -27,7 +27,7 @@
#include "qtcassert.h" #include "qtcassert.h"
#include "fileutils.h" #include "fileutils.h"
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
# include <windows.h> # include <Windows.h>
# include <io.h> # include <io.h>
#else #else
# include <unistd.h> # include <unistd.h>

View File

@@ -30,7 +30,7 @@
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
#undef _WIN32_WINNT #undef _WIN32_WINNT
#define _WIN32_WINNT 0x0600 // Needed for QueryFullProcessImageName #define _WIN32_WINNT 0x0600 // Needed for QueryFullProcessImageName
#include <windows.h> #include <Windows.h>
#endif #endif
#include <QString> #include <QString>

View File

@@ -45,7 +45,7 @@ static inline QString msgCannotInterrupt(qint64 pid, const QString &why)
#define _WIN32_WINNT 0x0501 /* WinXP, needed for DebugBreakProcess() */ #define _WIN32_WINNT 0x0501 /* WinXP, needed for DebugBreakProcess() */
#include <utils/winutils.h> #include <utils/winutils.h>
#include <windows.h> #include <Windows.h>
#if !defined(PROCESS_SUSPEND_RESUME) // Check flag for MinGW #if !defined(PROCESS_SUSPEND_RESUME) // Check flag for MinGW
# define PROCESS_SUSPEND_RESUME (0x0800) # define PROCESS_SUSPEND_RESUME (0x0800)

View File

@@ -35,7 +35,7 @@
#include <QDir> #include <QDir>
#include <QString> #include <QString>
#include <windows.h> #include <Windows.h>
#include <objbase.h> #include <objbase.h>
#include <shellapi.h> #include <shellapi.h>

View File

@@ -32,7 +32,7 @@
// Enable Win API of XP SP1 and later // Enable Win API of XP SP1 and later
#undef _WIN32_WINNT #undef _WIN32_WINNT
#define _WIN32_WINNT 0x0502 #define _WIN32_WINNT 0x0502
#include <windows.h> #include <Windows.h>
#include <utils/winutils.h> #include <utils/winutils.h>
#include <tlhelp32.h> #include <tlhelp32.h>
#include <psapi.h> #include <psapi.h>

View File

@@ -31,7 +31,7 @@
# include <QDir> # include <QDir>
# include <QDebug> # include <QDebug>
# include <climits> # include <climits>
# include <windows.h> # include <Windows.h>
using Utils::winErrorMessage; using Utils::winErrorMessage;

View File

@@ -37,7 +37,7 @@
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
#define _WIN32_WINNT 0x0502 #define _WIN32_WINNT 0x0502
#include <windows.h> #include <Windows.h>
#ifndef PROCESS_SUSPEND_RESUME #ifndef PROCESS_SUSPEND_RESUME
#define PROCESS_SUSPEND_RESUME 0x0800 #define PROCESS_SUSPEND_RESUME 0x0800
#endif // PROCESS_SUSPEND_RESUME #endif // PROCESS_SUSPEND_RESUME

View File

@@ -43,7 +43,7 @@
// Enable Win API of XP SP1 and later // Enable Win API of XP SP1 and later
#undef _WIN32_WINNT #undef _WIN32_WINNT
#define _WIN32_WINNT 0x0502 #define _WIN32_WINNT 0x0502
#include <windows.h> #include <Windows.h>
#include <utils/winutils.h> #include <utils/winutils.h>
#include <tlhelp32.h> #include <tlhelp32.h>
#include <psapi.h> #include <psapi.h>

View File

@@ -102,7 +102,7 @@
#include <utils/winutils.h> #include <utils/winutils.h>
#include <windows.h> #include <Windows.h>
#endif #endif
using namespace Core; using namespace Core;

View File

@@ -30,7 +30,7 @@
#include <qregexp.h> #include <qregexp.h>
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
# include <windows.h> # include <Windows.h>
#else #else
# include <sys/types.h> # include <sys/types.h>
# include <sys/stat.h> # include <sys/stat.h>

View File

@@ -59,7 +59,7 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/utsname.h> #include <sys/utsname.h>
#else #else
#include <windows.h> #include <Windows.h>
#endif #endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@@ -54,7 +54,7 @@
# include <sys/sysctl.h> # include <sys/sysctl.h>
# endif # endif
#else #else
#include <windows.h> #include <Windows.h>
#endif #endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@@ -49,7 +49,7 @@
#include <unistd.h> #include <unistd.h>
#include <sys/utsname.h> #include <sys/utsname.h>
#else #else
#include <windows.h> #include <Windows.h>
#endif #endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@@ -32,7 +32,7 @@
#include <QString> #include <QString>
#include <QLatin1String> #include <QLatin1String>
#include <windows.h> #include <Windows.h>
namespace RegistryAccess { namespace RegistryAccess {

View File

@@ -43,7 +43,7 @@
#include <registryaccess.h> #include <registryaccess.h>
#include <windows.h> #include <Windows.h>
#include <psapi.h> #include <psapi.h>
#include <app/app_version.h> #include <app/app_version.h>

View File

@@ -37,7 +37,7 @@
// Yes, this is ugly. But please don't introduce a libUtils dependency // Yes, this is ugly. But please don't introduce a libUtils dependency
// just to get rid of a single function. // just to get rid of a single function.
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
#include <windows.h> #include <Windows.h>
void doSleep(int msec) { ::Sleep(msec); } void doSleep(int msec) { ::Sleep(msec); }
#else #else
#include <time.h> #include <time.h>

View File

@@ -31,7 +31,7 @@
#error Must target Windows NT 5.0.1 or later for DebugBreakProcess #error Must target Windows NT 5.0.1 or later for DebugBreakProcess
#endif #endif
#include <windows.h> #include <Windows.h>
#include <stdio.h> #include <stdio.h>
/* To debug break a 64bit application under Windows, you must call /* To debug break a 64bit application under Windows, you must call

View File

@@ -258,7 +258,7 @@ void dummyStatement(...) {}
#endif #endif
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
#include <windows.h> #include <Windows.h>
#include <basetsd.h> #include <basetsd.h>
#undef min #undef min
#undef max #undef max

View File

@@ -47,7 +47,7 @@
#include <iostream> #include <iostream>
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
#include <windows.h> #include <Windows.h>
#endif #endif

View File

@@ -47,7 +47,7 @@
#include <iostream> #include <iostream>
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
#include <windows.h> #include <Windows.h>
#endif #endif