Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2013-07-09 21:51:00 +0400
committerMartin Storsjö <martin@martin.st>2013-07-11 19:53:02 +0400
commitef5b70affc6376bfeadd1ff649b79bad9a124fa8 (patch)
treec0831a2edd8f58fcf795cd44c748bd4bfaf4e88a /libavutil
parentd14a26edb7c4487df581f11e5c6911dc0e623d08 (diff)
configure: Check for support for labels in the inline assembly
Use this for enabling the ppc timer.h implementation only on assemblers that support labels in the inline assembly. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/ppc/timer.h6
1 files changed, 6 insertions, 0 deletions
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 <stdint.h>
+#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 */