qt6-qtbase/qtbase-version-check.patch

14 lines
598 B
Diff
Raw Normal View History

2021-01-22 08:45:28 +00:00
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h
2022-04-13 13:13:10 +00:00
index 6e83b78f..6a18cc19 100644
2021-01-22 08:45:28 +00:00
--- a/src/corelib/global/qglobal.h
+++ b/src/corelib/global/qglobal.h
2022-04-13 13:13:10 +00:00
@@ -59,7 +59,7 @@
2021-01-22 08:45:28 +00:00
/*
2022-04-13 13:13:10 +00:00
can be used like #if (QT_VERSION >= QT_VERSION_CHECK(6, 4, 0))
2021-01-22 08:45:28 +00:00
*/
-#define QT_VERSION_CHECK(major, minor, patch) ((major<<16)|(minor<<8)|(patch))
+#define QT_VERSION_CHECK(qt_version_check_major, qt_version_check_minor, qt_version_check_patch) ((qt_version_check_major<<16)|(qt_version_check_minor<<8)|(qt_version_check_patch))
#ifdef QT_BOOTSTRAPPED
#include <QtCore/qconfig-bootstrapped.h>