qt6-qtbase/qtbase-version-check.patch

14 lines
639 B
Diff
Raw Normal View History

2023-04-03 13:38:48 +00:00
diff --git a/src/corelib/global/qtversionchecks.h b/src/corelib/global/qtversionchecks.h
index d3b7a7b0..a8b9c6f3 100644
--- a/src/corelib/global/qtversionchecks.h
+++ b/src/corelib/global/qtversionchecks.h
@@ -26,7 +26,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))
2023-04-03 13:38:48 +00:00
/*
Helper macros to make some simple code active in Qt 6 or Qt 7 only,