diff libswscale/swscale-example.c @ 27744:7b83cbade239

Convert asm keyword into __asm__. Neither the asm() nor the __asm__() keyword is part of the C99 standard, but while GCC accepts the former in C89 syntax, it is not accepted in C99 unless GNU extensions are turned on (with -fasm). The latter form is accepted in any syntax as an extension (without requiring further command-line options). Sun Studio C99 compiler also does not accept asm() while accepting __asm__(), albeit reporting warnings that it's not valid C99 syntax.
author flameeyes
date Thu, 16 Oct 2008 13:34:30 +0000
parents ebb5c01bb107
children de9d0f9da2cc
line wrap: on
line diff
--- a/libswscale/swscale-example.c	Thu Oct 16 13:33:29 2008 +0000
+++ b/libswscale/swscale-example.c	Thu Oct 16 13:34:30 2008 +0000
@@ -120,7 +120,7 @@
     sws_scale(outContext, dst, dstStride, 0, dstH, out, refStride);
 
 #if defined(ARCH_X86)
-    asm volatile ("emms\n\t");
+    __asm__ volatile ("emms\n\t");
 #endif
 
     ssdY= getSSD(ref[0], out[0], refStride[0], refStride[0], w, h);
@@ -215,7 +215,7 @@
     sws_scale(sws, rgb_src, rgb_stride, 0, H, src, stride);
 
 #if defined(ARCH_X86)
-    asm volatile ("emms\n\t");
+    __asm__ volatile ("emms\n\t");
 #endif
 
     selfTest(src, stride, W, H);