代码拉取完成,页面将自动刷新
同步操作将从 src-anolis-os/qt5-qtbase 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From 90621fb3d5c4f40ba8914bf39a5b8f693ef8ad8d Mon Sep 17 00:00:00 2001
From: root <root@localhost.localdomain>
Date: Fri, 8 Jul 2022 11:23:57 +0800
Subject: [PATCH] remove-the-X11-True-and-False
---
src/corelib/serialization/qcborcommon.h | 1 -
src/corelib/serialization/qcborstreamreader.h | 4 ++--
src/corelib/serialization/qcborstreamwriter.h | 4 ++--
src/corelib/serialization/qcborvalue.h | 4 ++--
4 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/src/corelib/serialization/qcborcommon.h b/src/corelib/serialization/qcborcommon.h
index bec46399..625af982 100644
--- a/src/corelib/serialization/qcborcommon.h
+++ b/src/corelib/serialization/qcborcommon.h
@@ -50,7 +50,6 @@
/* X11 headers use these values too, but as defines */
#if defined(False) && defined(True)
-# define QT_X11_DEFINES_FOUND 1
# undef True
# undef False
#endif
diff --git a/src/corelib/serialization/qcborstreamreader.h b/src/corelib/serialization/qcborstreamreader.h
index 6d5feccf..3665b09e 100644
--- a/src/corelib/serialization/qcborstreamreader.h
+++ b/src/corelib/serialization/qcborstreamreader.h
@@ -49,8 +49,8 @@
QT_REQUIRE_CONFIG(cborstreamreader);
-// See qcborcommon.h for why we check
-#if defined(QT_X11_DEFINES_FOUND)
+/* X11 headers use these values too, but as defines */
+#if defined(False) && defined(True)
# undef True
# undef False
#endif
diff --git a/src/corelib/serialization/qcborstreamwriter.h b/src/corelib/serialization/qcborstreamwriter.h
index f8c94ceb..9c2f9e81 100644
--- a/src/corelib/serialization/qcborstreamwriter.h
+++ b/src/corelib/serialization/qcborstreamwriter.h
@@ -51,8 +51,8 @@
QT_REQUIRE_CONFIG(cborstreamwriter);
-// See qcborcommon.h for why we check
-#if defined(QT_X11_DEFINES_FOUND)
+/* X11 headers use these values too, but as defines */
+#if defined(False) && defined(True)
# undef True
# undef False
#endif
diff --git a/src/corelib/serialization/qcborvalue.h b/src/corelib/serialization/qcborvalue.h
index aa51e5da..4dc4ed69 100644
--- a/src/corelib/serialization/qcborvalue.h
+++ b/src/corelib/serialization/qcborvalue.h
@@ -53,8 +53,8 @@
#include <QtCore/qvariant.h>
#include <QtCore/qvector.h>
-// See qcborcommon.h for why we check
-#if defined(QT_X11_DEFINES_FOUND)
+/* X11 headers use these values too, but as defines */
+#if defined(False) && defined(True)
# undef True
# undef False
#endif
--
2.31.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。