[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnash-commit] gnash/libbase utility.h
From: |
strk |
Subject: |
Re: [Gnash-commit] gnash/libbase utility.h |
Date: |
Mon, 27 Aug 2007 19:09:35 +0200 |
On Mon, Aug 27, 2007 at 04:28:14PM +0000, Markus Gothe wrote:
> CVSROOT: /sources/gnash
> Module name: gnash
> Changes by: Markus Gothe <nihilus> 07/08/27 16:28:14
>
> Modified files:
> libbase : utility.h
>
> Log message:
> Fixed typo...
>
> CVSWeb URLs:
> http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/utility.h?cvsroot=gnash&r1=1.26&r2=1.27
>
> Patches:
> Index: utility.h
> ===================================================================
> RCS file: /sources/gnash/gnash/libbase/utility.h,v
> retrieving revision 1.26
> retrieving revision 1.27
> diff -u -b -r1.26 -r1.27
> --- utility.h 27 Aug 2007 11:58:47 -0000 1.26
> +++ utility.h 27 Aug 2007 16:28:13 -0000 1.27
> @@ -115,7 +115,7 @@
> // the overridden log(f) will use logf IFF f is a float
> inline float log2(float f) { return std::log(f) / LN_2; }
> //exp2 might be missing on Net-/OpenBSD.
> -inline float exp2(double d, double x) { return std::pow((double)d,
> double(x)); }
> +inline float exp2(double x) { return std::pow((double)2, double(x)); }
I was wondering why I wasn't getting this before ...
/home/strk/src/gnash/gnash-head/libbase/utility.h:118: error: new declaration
'float exp2(double)'
/usr/include/bits/mathcalls.h:142: error: ambiguates old declaration 'double
exp2(double)'
Please use a macro to detect availability of that function .
Note: this is a BLOCKER for 0.8.1 (you committed there too, right?)
--strk;