CVSROOT: /sources/gnash Module name: gnash Changes by: Markus Gothe <nihilus> 07/12/24 03:32:26
Modified files: libbase : utility.h Log message: More clever solution CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/utility.h?cvsroot=gnash&r1=1.38&r2=1.39 Patches: Index: utility.h =================================================================== RCS file: /sources/gnash/gnash/libbase/utility.h,v retrieving revision 1.38 retrieving revision 1.39 diff -u -b -r1.38 -r1.39 --- utility.h 24 Dec 2007 00:20:47 -0000 1.38 +++ utility.h 24 Dec 2007 03:32:26 -0000 1.39 @@ -95,7 +95,9 @@ // // some misc handy math functions // -inline float infinite_to_fzero(float x) { return std::isfinite(x) ? x : 0.0f; } +namespace std { +inline float infinite_to_fzero(float x) { return isfinite(x) ? x : 0.0f; } +} inline int iabs(int i) { if (i < 0) return -i; else return i; } /* fmax()/fmin() is C99 */ inline float fmax(float a, float b) { if (a < b) return b; else return a; } _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit