From 5fe45f8c86a27178f033d54f533c35bb993dd516 Mon Sep 17 00:00:00 2001 From: hanwen Date: Tue, 29 Jul 2003 17:00:05 +0000 Subject: [PATCH] * flower/libc-extension.cc: idem. * flower/include/libc-extension.hh: protect against isinf macros. --- ChangeLog | 5 +++++ configure.in | 2 +- flower/include/libc-extension.hh | 7 +------ flower/libc-extension.cc | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index b4402b20f9..4b5923d95b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-07-29 Han-Wen Nienhuys + + * flower/libc-extension.cc: idem. + + * flower/include/libc-extension.hh: protect against isinf macros. 2003-07-29 Han-Wen Nienhuys diff --git a/configure.in b/configure.in index 714089c29b..d830d1268d 100644 --- a/configure.in +++ b/configure.in @@ -50,7 +50,7 @@ AC_HEADER_STAT AC_FUNC_MEMCMP AC_FUNC_VPRINTF -AC_CHECK_FUNCS([gettext isinf lrint memmem snprintf vsnprintf gettext]) +AC_CHECK_FUNCS([gettext isinf memmem snprintf vsnprintf gettext]) ## Optional tools for building documentation, website, extra fonts. diff --git a/flower/include/libc-extension.hh b/flower/include/libc-extension.hh index 4040543768..ecf6d25810 100644 --- a/flower/include/libc-extension.hh +++ b/flower/include/libc-extension.hh @@ -33,15 +33,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 diff --git a/flower/libc-extension.cc b/flower/libc-extension.cc index 35484e3b57..c10eca00af 100644 --- a/flower/libc-extension.cc +++ b/flower/libc-extension.cc @@ -43,10 +43,10 @@ strnupr (char* start, int n) double my_round (double x) { - return floor (x -0.5)+ 1.0 ; + return floor (x -0.5)+ 1.0 ; } - +#ifndef isinf #if !HAVE_ISINF int isinf (double x) @@ -54,7 +54,7 @@ isinf (double x) return x && ( x == x/ 2) ; } #endif - +#endif #if !HAVE_MEMMEM -- 2.11.4.GIT