[vlc-devel] [vlc-commits] commit: Contribs: force gnu99 for FFmpeg and fix compilation ( Jean-Baptiste Kempf )

Jean-Baptiste Kempf jb at videolan.org
Mon Aug 9 17:28:59 CEST 2010


On Mon, Aug 09, 2010 at 03:54:55PM +0200, Grigori Goronzy wrote :
> >> Contribs: force gnu99 for FFmpeg and fix compilation
> >>
> >> For somewhat reason, on debian's (and arch's) mingw, strcasecmp isn't
> >> defined in c99
> > 
> > MingW works as specified. strcasecmp() is not part of the ISO C standard.
> > 
> 
> You have to enable POSIX things explicitly in c99 mode, for example with
> "#define _XOPEN_SOURCE 600" - see features.h. It should be the same on
> all glibc systems. This recently bit me. :)

This was what was passed
-std=c99 -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112

Best Regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/



More information about the vlc-devel mailing list