Mercurial > mplayer.hg
diff vidix/AsmMacros.h @ 27754:08d18fe9da52
Change all occurrences of asm and __asm to __asm__, same as was done for FFmpeg.
Neither variant is valid C99 syntax, but __asm__ is the most portable variant.
author | diego |
---|---|
date | Thu, 16 Oct 2008 18:59:27 +0000 |
parents | 3f6d802c6ea8 |
children | 0f1b5b68af32 |
line wrap: on
line diff
--- a/vidix/AsmMacros.h Thu Oct 16 18:28:38 2008 +0000 +++ b/vidix/AsmMacros.h Thu Oct 16 18:59:27 2008 +0000 @@ -99,11 +99,6 @@ #else /* not _MINIX and _ACK */ -# if defined(__STDC__) && (__STDC__ == 1) -# ifndef NCR -# define asm __asm -# endif -# endif # ifdef SVR4 # include <sys/types.h> # ifndef __USLC__ @@ -115,8 +110,8 @@ #else # include "../common/scoasm.h" #endif -#define intr_disable() asm("cli") -#define intr_enable() asm("sti") +#define intr_disable() __asm__("cli") +#define intr_enable() __asm__("sti") #endif /* _MINIX and _ACK */ #endif /* __GNUC__ */