about summary refs log tree commit diff
path: root/sysdeps/ieee754/ldbl-opt/nldbl-compat.h
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.eti.br>2018-07-04 11:54:11 -0300
committerGabriel F. T. Gomes <gabriel@inconstante.eti.br>2019-03-01 15:21:32 -0300
commit6e1f6440b99d74db314a9f1a1b27c050ef62a45c (patch)
tree4e4426ee1e4130fa089e0a1295f5078a35d38472 /sysdeps/ieee754/ldbl-opt/nldbl-compat.h
parentc259196b5005812aa3294dbf4eeca29b266a4522 (diff)
downloadglibc-6e1f6440b99d74db314a9f1a1b27c050ef62a45c.tar.gz
glibc-6e1f6440b99d74db314a9f1a1b27c050ef62a45c.tar.xz
glibc-6e1f6440b99d74db314a9f1a1b27c050ef62a45c.zip
ldbl-opt: Add argp_error and argp_failure (bug 23983)
The functions argp_error and argp_failure are missing support for
printing long double values when long double has the same format as
double.  This patch adds the new functions __nldbl_argp_error and
__nldbl_argp_failure, as well as header magic to redirect calls to them
when -mlong-double-64 is in use.

Tested for powerpc, powerpc64 and powerpc64le.
Diffstat (limited to 'sysdeps/ieee754/ldbl-opt/nldbl-compat.h')
-rw-r--r--sysdeps/ieee754/ldbl-opt/nldbl-compat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/ieee754/ldbl-opt/nldbl-compat.h b/sysdeps/ieee754/ldbl-opt/nldbl-compat.h
index f2079066cf..9f5836586c 100644
--- a/sysdeps/ieee754/ldbl-opt/nldbl-compat.h
+++ b/sysdeps/ieee754/ldbl-opt/nldbl-compat.h
@@ -26,6 +26,7 @@
 
 /* Avoid long double prototypes.  */
 #define __NO_LONG_DOUBLE_MATH	1
+#include <argp.h>
 #include <stdarg.h>
 #include <stdlib.h>
 #include <stdint.h>
@@ -76,6 +77,8 @@ NLDBL_DECL (__isoc99_swscanf);
 NLDBL_DECL (__isoc99_vwscanf);
 NLDBL_DECL (__isoc99_vfwscanf);
 NLDBL_DECL (__isoc99_vswscanf);
+NLDBL_DECL (argp_error);
+NLDBL_DECL (argp_failure);
 
 /* These do not exist in the normal interface, but must exist in the
    __nldbl interface so that they can be called from libnldbl.  */