]> git.sesse.net Git - ffmpeg/commitdiff
x86inc: try to put amdnop under ifdef to prevent compile failure
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 7 Jul 2012 18:16:56 +0000 (20:16 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 7 Jul 2012 18:16:56 +0000 (20:16 +0200)
based on similar amdnop usage in ffmpeg

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/x86/x86inc.asm

index 7d637a6353c9e4d460dc6c4933e84e2b617c5480..08c0975780644de0a21f28675c8f2cdba5af0623 100644 (file)
@@ -604,7 +604,9 @@ SECTION .note.GNU-stack noalloc noexec nowrite progbits
 ; All subsequent functions (up to the next INIT_CPUFLAGS) is built for the specified cpu.
 ; You shouldn't need to invoke this macro directly, it's a subroutine for INIT_MMX &co.
 %macro INIT_CPUFLAGS 0-2
+%ifdef __YASM_VER__
     CPU amdnop
+%endif
     %if %0 >= 1
         %xdefine cpuname %1
         %assign cpuflags cpuflags_%1