[FFmpeg-devel] Problem with cross compilation / need guidance for patch submission

Panagiotis Issaris takis.issaris
Mon Oct 13 10:33:08 CEST 2008


Hi Edouard,

On Sun, 2008-10-12 at 17:33 +0000, Edouard Gomez wrote:
> Diego Biurrun <diego <at> biurrun.de> writes:
> > The problem really is in FAAC and should be fixed there.  Submit a patch
> > to them that changes the preprocessor condition to use __WIN32__ or one
> > of the other variants.
> 
> I understand your point.
> 
> What you're telling here is that ffmpeg is relying on other libs to be
> iso c99. This is a very unrealistic approach as most of the libs are
> not iso c99 compliant. 
> 
> To put it simply, the ffmpeg build system is at fault because it imposes
> the std=c99 to headers that were never thought to be compiled like that.
> Why fix external headers ? Isn't the responsability of the includer to
> use the headers correctly ?

Actually, I do not think that ffmpeg is at fault, and I do not think it
has anything to do with C99 either. In fact, Microsofts C/C++ compiler
does not define WIN32 at all, it defines _WIN32. A lot of software
checks for WIN32 and this works only because the Visual Studio IDE by
default adds -DWIN32 to the compiler flags.


With friendly regards,
Takis





More information about the ffmpeg-devel mailing list