sys/cdefs.h has a macro __long_double_t used in two places in glibc.
long double is a standard part of C since C89; there is no need for
such an alias for it. This patch removes that macro and uses long
double directly everywhere. As an implementation-namespace,
undocumented symbol, it should not be considered part of the API for
users, and codesearch.debian.net shows no sign of it being used
outside glibc in a way that would break with this patch.
Tested for x86_64.
* misc/sys/cdefs.h (__long_double_t): Remove.
* stdio-common/printf_fp.c (__printf_fp_l): Use long double
instead of __long_double_t,
* stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
+2017-08-07 Joseph Myers <joseph@codesourcery.com>
+
+ * misc/sys/cdefs.h (__long_double_t): Remove.
+ * stdio-common/printf_fp.c (__printf_fp_l): Use long double
+ instead of __long_double_t,
+ * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
+
2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
* benchtests/scripts/compare_strings.py: Avoid display error when
/* This is not a typedef so `const __ptr_t' does the right thing. */
#define __ptr_t void *
-#define __long_double_t long double
/* C++ needs to know that types and declarations are C, not C++. */
union
{
double dbl;
- __long_double_t ldbl;
+ long double ldbl;
#if __HAVE_DISTINCT_FLOAT128
_Float128 f128;
#endif
union
{
double dbl;
- __long_double_t ldbl;
+ long double ldbl;
}
fpnum;
int int_format;