From ef5b70affc6376bfeadd1ff649b79bad9a124fa8 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Tue, 9 Jul 2013 20:51:00 +0300 Subject: configure: Check for support for labels in the inline assembly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use this for enabling the ppc timer.h implementation only on assemblers that support labels in the inline assembly. Signed-off-by: Martin Storsjö --- libavutil/ppc/timer.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libavutil/ppc') diff --git a/libavutil/ppc/timer.h b/libavutil/ppc/timer.h index 0981d0cdbc..8d08d2835b 100644 --- a/libavutil/ppc/timer.h +++ b/libavutil/ppc/timer.h @@ -23,6 +23,10 @@ #include +#include "config.h" + +#if HAVE_INLINE_ASM_LABELS + #define AV_READ_TIME read_time static inline uint64_t read_time(void) @@ -44,4 +48,6 @@ static inline uint64_t read_time(void) return (((uint64_t)tbu)<<32) | (uint64_t)tbl; } +#endif /* HAVE_INLINE_ASM_LABELS */ + #endif /* AVUTIL_PPC_TIMER_H */ -- cgit v1.2.3