[MPlayer-dev-eng] Patch for gcc 3.4 against MPlayer-1.0pre5

Attila Kinali attila at kinali.ch
Sun Aug 22 02:34:09 CEST 2004


On Wed, Aug 18, 2004 at 02:16:24PM -0500, Joey Parrish wrote:
 
> > +
> > +// Integer to float conversion through lrintf()
> > +#ifdef HAVE_LRINTF
> > +#ifdef __FreeBSD__
> > +#include <math.h>
> > +#define lrintf(x) rintf(x)
> > +#else
> > +#define __USE_ISOC99 1
> > +#include <math.h>
> > +#endif
> > +#else
> > +#define lrintf(x) ((int)(x))
> > +#endif
> > +
> 
> If these changes are needed in so many files, then maybe we should add
> this somewhere rather than #defining it:

Beside most of them are in libavc which belongs to ffmpeg and not
MPlayer.

> #ifndef HAVE_LRINTF
> long int lrintf(float x)
> {
>   return (long int)x;
> }
> #endif

Should definitly be inline.

			Attila Kinali




More information about the MPlayer-dev-eng mailing list