From patchwork Sat Apr 14 19:40:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: x86: Don't declare a non-static function as inline X-Patchwork-Submitter: =?utf-8?q?Martin_Storsj=C3=B6?= X-Patchwork-Id: 64279 Message-Id: <1523734826-8076-1-git-send-email-martin@martin.st> To: libav-devel@libav.org Date: Sat, 14 Apr 2018 22:40:26 +0300 From: =?utf-8?q?Martin_Storsj=C3=B6?= List-Id: libav development This fixes building with clang in msvc mode, which does support gcc style inline assembly. --- libavcodec/x86/xvididct_sse2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/x86/xvididct_sse2.c b/libavcodec/x86/xvididct_sse2.c index f318e95..0de59a5 100644 --- a/libavcodec/x86/xvididct_sse2.c +++ b/libavcodec/x86/xvididct_sse2.c @@ -342,7 +342,7 @@ DECLARE_ASM_CONST(16, int32_t, walkenIdctRounders)[] = { "movdqa %%xmm6, 4*16("dct") \n\t" \ "movdqa "SREG2", 7*16("dct") \n\t" -inline void ff_xvid_idct_sse2(short *block) +void ff_xvid_idct_sse2(short *block) { __asm__ volatile ( "movq "MANGLE (m127) ", %%mm0 \n\t"