glibc/sysdeps/generic/math_ldbl_opt.h
Zack Weinberg 35caceb145 Use PRINTF_LDBL_IS_DBL instead of __ldbl_is_dbl.
After all that prep work, nldbl-compat.c can now use PRINTF_LDBL_IS_DBL
instead of __no_long_double to control the behavior of printf-like
functions; this is the last thing we needed __no_long_double for, so it
can go away entirely.

Tested for powerpc and powerpc64le.
2018-12-05 18:15:43 -02:00

18 lines
855 B
C

/* -mlong-double-64 compatibility mode macros. Stub version.
These macros are used by some math/ and sysdeps/ieee754/ code.
These are the generic definitions for when no funny business is going on.
sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h defines them differently
for platforms where compatibility symbols are required for a previous
ABI that defined long double functions as aliases for the double code. */
#include <shlib-compat.h>
#define LONG_DOUBLE_COMPAT(lib, introduced) 0
#define long_double_symbol(lib, local, symbol)
#define ldbl_hidden_def(local, name) libc_hidden_def (name)
#define ldbl_strong_alias(name, aliasname) strong_alias (name, aliasname)
#define ldbl_weak_alias(name, aliasname) weak_alias (name, aliasname)
#define ldbl_compat_symbol(lib, local, symbol, version) \
compat_symbol (lib, local, symbol, version)