X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=flower%2Finclude%2Flibc-extension.hh;h=906e64a4d49503a612e0a9fced9c43e065a472ee;hb=9458fa215af0294e9c38d62cc3a237a85fe50509;hp=fc53e3c81c6b3875915fc951329f3864d31d8555;hpb=2b7544ae15a26e0fa45bd70fd5c80c4b732f9470;p=lilypond.git diff --git a/flower/include/libc-extension.hh b/flower/include/libc-extension.hh index fc53e3c81c..906e64a4d4 100644 --- a/flower/include/libc-extension.hh +++ b/flower/include/libc-extension.hh @@ -3,20 +3,18 @@ source file of the flowerlib - (c) 1997--2003 Han-Wen Nienhuys + (c) 1997--2004 Han-Wen Nienhuys */ - #ifndef LIBC_EXTENSION_HH #define LIBC_EXTENSION_HH -#include "flower-proto.hh" -#include "config.h" - - #include #include +#include "config.hh" +#include "flower-proto.hh" + char* strnlwr (char* start ,int n); char* strnupr (char* start, int n); @@ -33,15 +31,10 @@ int snprintf (char *str, size_t n, char const *format, ...); int vsnprintf (char *str, size_t, char const *format, va_list args); #endif - +#ifndef isinf #if !HAVE_ISINF // BSD extension int isinf (double x); - #endif - - -#if ! HAVE_LRINT -#define lrint(__x) ((long) (round (__x))) #endif @@ -49,4 +42,6 @@ Byte *memrchr (Byte const * p, int n, char c); Byte *strrev (Byte* byte, int length_i); +double my_round (double); + #endif // LIBC_EXTENSION_HH