2021-06-22 04:45:33 +08:00
|
|
|
diff --git a/src/corelib/kernel/qproperty.h b/src/corelib/kernel/qproperty.h
|
|
|
|
index 823b2057b..4a8cd4fa8 100644
|
|
|
|
--- a/src/corelib/kernel/qproperty.h
|
|
|
|
+++ b/src/corelib/kernel/qproperty.h
|
2021-07-07 04:43:23 +08:00
|
|
|
@@ -49,8 +49,8 @@
|
2021-06-22 04:45:33 +08:00
|
|
|
|
|
|
|
#include <QtCore/qpropertyprivate.h>
|
|
|
|
|
|
|
|
-#if __has_include(<source_location>) && __cplusplus >= 202002L && !defined(Q_CLANG_QDOC)
|
|
|
|
+#if __has_include(<source_location>) && __cplusplus >= 202002L && !defined(Q_CLANG_QDOC) && defined(__cpp_consteval)
|
2021-07-07 04:43:23 +08:00
|
|
|
#include <source_location>
|
|
|
|
#if defined(__cpp_lib_source_location)
|
2021-06-22 04:45:33 +08:00
|
|
|
#define QT_SOURCE_LOCATION_NAMESPACE std
|
|
|
|
#define QT_PROPERTY_COLLECT_BINDING_LOCATION
|