summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/corelib/kernel/qmath.h2
-rw-r--r--src/corelib/text/qstringconverter.cpp2
-rw-r--r--src/corelib/tools/qalgorithms.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/kernel/qmath.h b/src/corelib/kernel/qmath.h
index 4c5a980f3a..98251c0b57 100644
--- a/src/corelib/kernel/qmath.h
+++ b/src/corelib/kernel/qmath.h
@@ -47,7 +47,7 @@
#include <QtCore/qglobal.h>
#include <QtCore/qalgorithms.h>
-#if __has_include(<bit>)
+#if __has_include(<bit>) && __cplusplus > 201703L
#include <bit>
#endif
diff --git a/src/corelib/text/qstringconverter.cpp b/src/corelib/text/qstringconverter.cpp
index 778674ebd8..4af4a1af9d 100644
--- a/src/corelib/text/qstringconverter.cpp
+++ b/src/corelib/text/qstringconverter.cpp
@@ -50,7 +50,7 @@
#include <qt_windows.h>
#endif
-#if __has_include(<bit>)
+#if __has_include(<bit>) && __cplusplus > 201703L
#include <bit>
#endif
diff --git a/src/corelib/tools/qalgorithms.h b/src/corelib/tools/qalgorithms.h
index 58709f7fdf..11e4d9da39 100644
--- a/src/corelib/tools/qalgorithms.h
+++ b/src/corelib/tools/qalgorithms.h
@@ -42,7 +42,7 @@
#include <QtCore/qglobal.h>
-#if __has_include(<bit>)
+#if __has_include(<bit>) && __cplusplus > 201703L
#include <bit>
#endif