代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/libvisual 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From 54107a5d81ffaba6111fea2c98618109b6ddcde4 Mon Sep 17 00:00:00 2001
From: licihua <licihua@huawei.com>
Date: Thu, 29 Dec 2022 11:30:17 +0800
Subject: [PATCH 2/3] libvisual-0.4.0-inlinedefineconflict
---
libvisual/lv_cache.c | 4 ++--
libvisual/lv_defines.h | 2 ++
libvisual/lv_time.h | 4 ++--
3 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/libvisual/lv_cache.c b/libvisual/lv_cache.c
index f905d22..3f975aa 100644
--- a/libvisual/lv_cache.c
+++ b/libvisual/lv_cache.c
@@ -32,7 +32,7 @@
static int cache_dtor (VisObject *object);
static int cache_remove_list_entry (VisCache *cache, VisListEntry **le);
-static inline void handle_request_reset (VisCache *cache, VisListEntry *le);
+static lv_inline void handle_request_reset (VisCache *cache, VisListEntry *le);
static int cache_dtor (VisObject *object)
{
@@ -74,7 +74,7 @@ static int cache_remove_list_entry (VisCache *cache, VisListEntry **le)
}
-static inline void handle_request_reset (VisCache *cache, VisListEntry *le)
+static lv_inline void handle_request_reset (VisCache *cache, VisListEntry *le)
{
VisCacheEntry *centry;
diff --git a/libvisual/lv_defines.h b/libvisual/lv_defines.h
index 0de91b6..2961d39 100644
--- a/libvisual/lv_defines.h
+++ b/libvisual/lv_defines.h
@@ -63,12 +63,14 @@
/* Compiler specific optimalization macros */
#if __GNUC__ >= 3
+# define lv_inline inline __attribute__ ((always_inline))
# define __malloc __attribute__ ((malloc))
# define __packed __attribute__ ((packed))
# define VIS_LIKELY(x) __builtin_expect (!!(x), 1)
# define VIS_UNLIKELY(x) __builtin_expect (!!(x), 0)
#else
# define inline /* no inline */
+# define lv_inline /* no lv_inline */
# define __malloc /* no malloc */
# define __packed /* no packed */
# define VIS_LIKELY(x) (x)
diff --git a/libvisual/lv_time.h b/libvisual/lv_time.h
index 885448a..665af4a 100644
--- a/libvisual/lv_time.h
+++ b/libvisual/lv_time.h
@@ -101,7 +101,7 @@ int visual_timer_has_passed_by_values (VisTimer *timer, long sec, long usec);
*
* @return Nothing.
*/
-static inline void visual_timer_tsc_get (uint32_t *lo, uint32_t *hi)
+static lv_inline void visual_timer_tsc_get (uint32_t *lo, uint32_t *hi)
{
#if defined(VISUAL_ARCH_X86) || defined(VISUAL_ARCH_X86_64)
__asm __volatile
@@ -115,7 +115,7 @@ static inline void visual_timer_tsc_get (uint32_t *lo, uint32_t *hi)
}
/* FIXME use uint64_t here, make sure type exists */
-static inline unsigned long long visual_timer_tsc_get_returned ()
+static lv_inline unsigned long long visual_timer_tsc_get_returned ()
{
uint32_t lo, hi;
--
2.26.2
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。