Salome HOME
Ensure cmake_build_type is used in SALOME 9.12.0
[tools/sat_salome.git] / products / patches / qt_5_15_2_numeric_limits.patch
1 diff -Naur qt_ref/qtbase/src/corelib/global/qendian.h qt/qtbase/src/corelib/global/qendian.h
2 --- qt_ref/qtbase/src/corelib/global/qendian.h  2024-06-20 08:48:35.275042443 +0200
3 +++ qt/qtbase/src/corelib/global/qendian.h      2024-06-19 09:26:15.988364209 +0200
4 @@ -47,6 +47,7 @@
5  // include stdlib.h and hope that it defines __GLIBC__ for glibc-based systems
6  #include <stdlib.h>
7  #include <string.h>
8 +#include <limits>
9  
10  #ifdef min // MSVC
11  #undef min
12 diff -Naur qt_ref/qtbase/src/corelib/global/qfloat16.h qt/qtbase/src/corelib/global/qfloat16.h
13 --- qt_ref/qtbase/src/corelib/global/qfloat16.h 2024-06-20 08:48:35.275042443 +0200
14 +++ qt/qtbase/src/corelib/global/qfloat16.h     2024-06-19 09:26:58.829940099 +0200
15 @@ -44,6 +44,7 @@
16  #include <QtCore/qglobal.h>
17  #include <QtCore/qmetatype.h>
18  #include <string.h>
19 +#include <limits>
20  
21  #if defined(QT_COMPILER_SUPPORTS_F16C) && defined(__AVX2__) && !defined(__F16C__)
22  // All processors that support AVX2 do support F16C too. That doesn't mean
23 diff -Naur qt_ref/qtbase/src/corelib/text/qbytearraymatcher.h qt/qtbase/src/corelib/text/qbytearraymatcher.h
24 --- qt_ref/qtbase/src/corelib/text/qbytearraymatcher.h  2024-06-20 08:48:35.298042763 +0200
25 +++ qt/qtbase/src/corelib/text/qbytearraymatcher.h      2024-06-19 09:29:34.864037490 +0200
26 @@ -41,6 +41,7 @@
27  #define QBYTEARRAYMATCHER_H
28  
29  #include <QtCore/qbytearray.h>
30 +#include <limits>
31  
32  QT_BEGIN_NAMESPACE
33