X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=flower%2Flibc-extension.cc;h=e072826d302f3bfdce97239e5629c02d95337bbc;hb=7e72a1e50e94a7f9738d62599de79fe7745f600c;hp=4d42ce44b3940f661257abdb5ca9521695847e24;hpb=79a1d3e220b3d1238fe9f483c9960d4b82c28249;p=lilypond.git diff --git a/flower/libc-extension.cc b/flower/libc-extension.cc index 4d42ce44b3..e072826d30 100644 --- a/flower/libc-extension.cc +++ b/flower/libc-extension.cc @@ -4,10 +4,12 @@ source file of the flowerlib - (c) 1997--2003 Han-Wen Nienhuys + (c) 1997--2004 Han-Wen Nienhuys Jan Nieuwenhuizen */ +#include + #include #include #include @@ -35,8 +37,16 @@ strnupr (char* start, int n) return start; } +/* + There are some strange problems with round() on early glibcs. + */ +double +my_round (double x) +{ + return floor (x -0.5)+ 1.0 ; +} - +#ifndef isinf #if !HAVE_ISINF int isinf (double x) @@ -44,7 +54,7 @@ isinf (double x) return x && ( x == x/ 2) ; } #endif - +#endif #if !HAVE_MEMMEM