[MPlayer-dev-eng] about log2 replacement

Alex Converse alex.converse at gmail.com
Mon Aug 10 07:00:02 CEST 2009


On Mon, Aug 10, 2009 at 12:30 AM, Chang Chen<Chang_Chen at sonic.com> wrote:
> Hi All
>
>
>
> In r19395 of libavutil/internal.h, alexc added a inline function for
> log2.
>
>
>
> ~~log2~~ isn't c99 standard, but it is defined a macro with build flag
> -std=gnu99.
>
>
>
> ffmpeg use -std=c99,  so this works, but mplayer use -std=gnu99, so
> build is broen
>
>
>
> any suggestion for how to fix this issue?
>

If log2 is infact reliably a macro in gnu99 then wouldn't the easiest
thing be to define HAVE_LOG2 in config.h?

Regards,
alexc



More information about the MPlayer-dev-eng mailing list