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

Zuxy Meng zuxy.meng
Thu Jan 7 02:57:11 CET 2010


Hi,

2010/1/6 Ramiro Polla <ramiro.polla at gmail.com>:
> 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

My fault. Should be WIN32.
>
>>> 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?

I'm using 1.26. So those guys have changed the calling convention; no
problem then:-)

-- 
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6



More information about the ffmpeg-devel mailing list