From 6a18c0bc87e38557fa9dd9fcf974f310cfff112e Mon Sep 17 00:00:00 2001 From: Zhao Zhili Date: Fri, 7 Jun 2024 21:44:49 +0800 Subject: [PATCH] avutil/aarch64: Skip define AV_READ_TIME for apple MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It will fallback to mach_absolute_time inside libavutil/timer.h Reviewed-by: Martin Storsjö Signed-off-by: Zhao Zhili --- libavutil/aarch64/timer.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libavutil/aarch64/timer.h b/libavutil/aarch64/timer.h index 8b28fd354c..fadc9568f8 100644 --- a/libavutil/aarch64/timer.h +++ b/libavutil/aarch64/timer.h @@ -24,13 +24,7 @@ #include #include "config.h" -#if defined(__APPLE__) - -#include - -#define AV_READ_TIME mach_absolute_time - -#elif HAVE_INLINE_ASM +#if HAVE_INLINE_ASM && !defined(__APPLE__) #define AV_READ_TIME read_time