[MPlayer-dev-eng] [PATCH]Allow compilation with icc

Guillaume POIRIER poirierg at gmail.com
Wed Nov 12 23:15:02 CET 2008


Hello,

On Wed, Nov 12, 2008 at 11:12 PM, Reimar Döffinger
<Reimar.Doeffinger at stud.uni-karlsruhe.de> wrote:
> On Thu, Nov 13, 2008 at 12:50:22AM +0100, Carl Eugen Hoyos wrote:
>> Hi!
>>
>> Attached patch is currectly necessary to compile mplayer with icc (10.1).
>> I'll commit next week, Carl Eugen
>
>> Index: configure
>> ===================================================================
>> --- configure (Revision 27904)
>> +++ configure (Arbeitskopie)
>> @@ -7767,6 +7767,8 @@
>>    cc_check -Wdeclaration-after-statement && CFLAGS="-Wdeclaration-after-statement $CFLAGS"
>>    cc_check -Wno-pointer-sign && CFLAGS="-Wno-pointer-sign $CFLAGS"
>>    cc_check -Wdisabled-optimization && CFLAGS="-Wdisabled-optimization $CFLAGS"
>> +else
>> +  CFLAGS="-D_ISOC99_SOURCE -D_BSD_SOURCE $CFLAGS"
>>  fi
>
> What is _ISOC99_SOURCE needed for? I think it should be
> -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112L
> and it should be added always.

I think it's due to:

mplayer/libavcodec/nellymoserenc.c:205:        opt[0][i] = INFINITY;
mplayer/libavcodec/nellymoserenc.c:242:    best_val = INFINITY;


Guillaume
-- 
One should not give up hope on imbeciles. With a little training, you
can make them into soldiers.
 -- Pierre Desproges


More information about the MPlayer-dev-eng mailing list