[Ffmpeg-devel] [PATCH] from DivX, Part 7: MSVC fixes
Sat Dec 17 05:21:54 CET 2005
On Fri, Dec 16, 2005 at 04:18:02PM -1000, Steve Lhomme wrote:
> Rich Felker wrote:
> >On Fri, Dec 16, 2005 at 01:49:16PM -1000, Steve Lhomme wrote:
> >>These are only the "soft" part of the MSVC fixes. That means I didn't
> >>include parts I know wouldn't make it, like the named fields in
> >>- DCTELEM __align8 block;
> >>+ __align8(DCTELEM, block);
> >And this is supposed to be readable how?? It doesn't even look like a
> >declaration anymore!
> Tell me in the standard C __align8 is defined. As ffmpeg is supposed to
_align8 is #defined on gcc to gcc-specific stuff, and defined as empty
on other compilers. This is perfectly fine since it's only needed for
the asm, which is only supported on gcc.
> be compiled with any _standard_ C compiler.
Yes, with inline asm disabled. If you enable inline asm it's gcc-only
(or compatible compilers).
More information about the ffmpeg-devel