[FFmpeg-cvslog] avutil: Fix compilation with inline asm disabled on mingw

Alex Smith git at videolan.org
Sun Sep 22 12:10:29 CEST 2013


ffmpeg | branch: master | Alex Smith <alex.smith at warpsharp.info> | Sat Sep 21 07:22:12 2013 -0400| [08fa828b3fe242038c12df3e145e2c571e697d13] | committer: Martin Storsjö

avutil: Fix compilation with inline asm disabled on mingw

Because of -Werror=implicit-function-declaration the build will fail.

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=08fa828b3fe242038c12df3e145e2c571e697d13
---

 libavutil/x86/timer.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavutil/x86/timer.h b/libavutil/x86/timer.h
index 35e614d..cdd67dd 100644
--- a/libavutil/x86/timer.h
+++ b/libavutil/x86/timer.h
@@ -36,6 +36,7 @@ static inline uint64_t read_time(void)
 
 #elif HAVE_RDTSC
 
+#include <intrin.h>
 #define AV_READ_TIME __rdtsc
 
 #endif /* HAVE_INLINE_ASM */



More information about the ffmpeg-cvslog mailing list