* flower/include/libc-extension.hh: protect against isinf macros.
+2003-07-29 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+
+ * flower/libc-extension.cc: idem.
+
+ * flower/include/libc-extension.hh: protect against isinf macros.
2003-07-29 Han-Wen Nienhuys <hanwen@cs.uu.nl>
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.
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
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)
return x && ( x == x/ 2) ;
}
#endif
-
+#endif
#if !HAVE_MEMMEM