From 35f31b6a983710aa9a2bd7e308d1567f326f3f5f Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Fri, 24 Apr 2009 22:49:55 +0000 Subject: 2009-04-24 Jeff johnston * configure.in: Add configuration test for long double equals dbl and set flag _LDBL_EQ_DBL if true. * configure: Regenerated. * newlib.hin: Add _LDBL_EQ_DBL flag. * libc/include/math.h: Use _LDBL_EQ_DBL flag instead of _HAVE_LDBL_MATH. * libc/include/stdlib.h: Use _LDBL_EQ_DBL flag instead of _HAVE_LDBL_STDLIB. * libc/common/local.h: Remove _LDBL_EQ_DBL flag setting. * libc/stdlib/local.h: Ditto. --- newlib/libc/include/stdlib.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'newlib/libc/include/stdlib.h') diff --git a/newlib/libc/include/stdlib.h b/newlib/libc/include/stdlib.h index 7dfb77983..8f7d31e18 100644 --- a/newlib/libc/include/stdlib.h +++ b/newlib/libc/include/stdlib.h @@ -199,11 +199,11 @@ int _EXFUN(_system_r,(struct _reent *, const char *)); _VOID _EXFUN(__eprintf,(const char *, const char *, unsigned int, const char *)); -/* On platforms where long double stdlib functions are supported. */ -#ifdef _HAVE_LDBL_STDLIB +/* On platforms where long double equals double. */ +#ifdef _LDBL_EQ_DBL extern long double strtold (const char *, char **); extern long double wcstold (const wchar_t *, wchar_t **); -#endif /* _HAVE_LDBL_STDLIB */ +#endif /* _LDBL_EQ_DBL */ _END_STD_C -- cgit v1.2.3