qt5-doc: fix build with gcc-12

This commit is contained in:
Đoàn Trần Công Danh 2022-10-13 09:02:15 +07:00
parent 0443edbf6d
commit 20061cec4a
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
Index: qt-everywhere-src-5.15.2/qtbase/src/corelib/global/qfloat16.h
===================================================================
--- qt-everywhere-src-5.15.2.orig/qtbase/src/corelib/global/qfloat16.h
+++ qt-everywhere-src-5.15.2/qtbase/src/corelib/global/qfloat16.h
@@ -43,6 +43,7 @@
#include <QtCore/qglobal.h>
#include <QtCore/qmetatype.h>
+#include <limits>
#include <string.h>
#if defined(QT_COMPILER_SUPPORTS_F16C) && defined(__AVX2__) && !defined(__F16C__)
Index: qt-everywhere-src-5.15.2/qtbase/src/corelib/text/qbytearraymatcher.h
===================================================================
--- qt-everywhere-src-5.15.2.orig/qtbase/src/corelib/text/qbytearraymatcher.h
+++ qt-everywhere-src-5.15.2/qtbase/src/corelib/text/qbytearraymatcher.h
@@ -42,6 +42,8 @@
#include <QtCore/qbytearray.h>
+#include <limits>
+
QT_BEGIN_NAMESPACE