[MPlayer-dev-eng] [Patch] NetBSD compilation fix: strtof() -> strod() in freesdb

Diego Biurrun diego at biurrun.de
Thu Jul 27 23:03:31 CEST 2006


On Tue, Jul 25, 2006 at 01:51:31PM -0400, Rich Felker wrote:
> On Tue, Jul 25, 2006 at 03:17:23PM +0200, Reimar Doeffinger wrote:
> > On Tue, Jul 25, 2006 at 02:09:13PM +0200, Joerg Sonnenberger wrote:
> > > On Tue, Jul 25, 2006 at 02:46:31PM +0300, Jan Knutar wrote:
> > > > The C99 function strtof is unavailable in NetBSD 3.0, probably also not
> > > > available in OpenBSD.
> > > 
> > > It is available in NetBSD current, but add DragonFly to the list.
> > > This should be made a configure test though.
> > 
> > We don't have any reason not to use strtod so far, so just replacing it
> > seems fine to me. The (float) cast seems useless to me though.
> 
> Agree, the cast is stupid, as is using the C99 float functions in
> general.

@everybody: Discuss less, apply more.

Patch applied, thanks.

Diego



More information about the MPlayer-dev-eng mailing list