forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[qt] Add patches to fix missing includes
This is needed to build with GCC11 Fixes microsoft#19226
- Loading branch information
1 parent
ab60f27
commit f84e235
Showing
7 changed files
with
84 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
From 61325e4547225b8b2ecefda4ca328a38c075c909 Mon Sep 17 00:00:00 2001 | ||
From: Nicolas Fella <nicolas.fella@gmx.de> | ||
Date: Wed, 11 Aug 2021 15:35:05 +0200 | ||
Subject: [PATCH] Add missing limits include | ||
|
||
--- | ||
src/corelib/global/qendian.h | 1 + | ||
src/corelib/global/qfloat16.h | 1 + | ||
src/corelib/text/qbytearraymatcher.h | 2 ++ | ||
3 files changed, 4 insertions(+) | ||
|
||
diff --git a/src/corelib/global/qendian.h b/src/corelib/global/qendian.h | ||
index 257efbbdbe..05f11d6f81 100644 | ||
--- a/src/corelib/global/qendian.h | ||
+++ b/src/corelib/global/qendian.h | ||
@@ -47,6 +47,7 @@ | ||
// include stdlib.h and hope that it defines __GLIBC__ for glibc-based systems | ||
#include <stdlib.h> | ||
#include <string.h> | ||
+#include <limits> | ||
|
||
#ifdef min // MSVC | ||
#undef min | ||
diff --git a/src/corelib/global/qfloat16.h b/src/corelib/global/qfloat16.h | ||
index c7a9c87af3..3287d7cbf2 100644 | ||
--- a/src/corelib/global/qfloat16.h | ||
+++ b/src/corelib/global/qfloat16.h | ||
@@ -44,6 +44,7 @@ | ||
#include <QtCore/qglobal.h> | ||
#include <QtCore/qmetatype.h> | ||
#include <string.h> | ||
+#include <limits> | ||
|
||
#if defined(QT_COMPILER_SUPPORTS_F16C) && defined(__AVX2__) && !defined(__F16C__) | ||
// All processors that support AVX2 do support F16C too. That doesn't mean | ||
diff --git a/src/corelib/text/qbytearraymatcher.h b/src/corelib/text/qbytearraymatcher.h | ||
index 0eedfc1d20..f5f9bef7b8 100644 | ||
--- a/src/corelib/text/qbytearraymatcher.h | ||
+++ b/src/corelib/text/qbytearraymatcher.h | ||
@@ -42,6 +42,8 @@ | ||
|
||
#include <QtCore/qbytearray.h> | ||
|
||
+#include <limits> | ||
+ | ||
QT_BEGIN_NAMESPACE | ||
|
||
|
||
-- | ||
2.32.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
From 2dfb893c130a9f9195805fcc81d7e5e242bc558d Mon Sep 17 00:00:00 2001 | ||
From: Nicolas Fella <nicolas.fella@gmx.de> | ||
Date: Wed, 11 Aug 2021 17:03:06 +0200 | ||
Subject: [PATCH] Add missing limits include | ||
|
||
--- | ||
src/qmldebug/qqmlprofilerevent_p.h | 1 + | ||
1 file changed, 1 insertion(+) | ||
|
||
diff --git a/src/qmldebug/qqmlprofilerevent_p.h b/src/qmldebug/qqmlprofilerevent_p.h | ||
index a7e37d1964..01b2f58f16 100644 | ||
--- a/src/qmldebug/qqmlprofilerevent_p.h | ||
+++ b/src/qmldebug/qqmlprofilerevent_p.h | ||
@@ -48,6 +48,7 @@ | ||
#include <QtCore/qmetatype.h> | ||
|
||
#include <initializer_list> | ||
+#include <limits> | ||
#include <type_traits> | ||
|
||
// | ||
-- | ||
2.32.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
include(${CURRENT_INSTALLED_DIR}/share/qt5/qt_port_functions.cmake) | ||
qt_submodule_installation() | ||
qt_submodule_installation(PATCHES limits_include.patch) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters