[FFmpeg-devel] -std=c99 breaks mingw32 build with libfaac

Ramiro Polla ramiro.polla
Wed Jan 6 14:28:50 CET 2010

2010/1/6 M?ns Rullg?rd <mans at mansr.com>:
> Zuxy Meng <zuxy.meng at gmail.com> writes:
>> As libfaac uses __stdcall calling convention ifdef WIN32 but GCC under
>> -std=c99 doesn't?have _WIN32 defined.

$ i686-mingw32-gcc -std=c99 -xc -dM -E /dev/null | grep WIN32
#define __WIN32__ 1
#define _WIN32 1
#define __WIN32 1

>> Changing -std=c99 to -std=gnu99
>> avoids the problem. Is it an acceptable change?
> Why not fix faac instead?

It has already been fixed in faac 1.28. Zuxy, what versions of faac
and mingw are you using?

More information about the ffmpeg-devel mailing list