mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-10 05:03:06 +03:00
ldbl-opt: Add error and error_at_line (bug 23984)
On platforms where long double may have the same format as double (-mlong-double-64), error and error_at_line do not take that into account and might produce wrong output if a long double conversion is requested by the format string ('%Lf'). This patch adds compatibility functions for this situation and redirects calls via header magic. Tested for powerpc, powerpc64 and powerpc64le.
This commit is contained in:
@@ -1 +1,15 @@
|
||||
#ifndef _ERROR_H
|
||||
#include <misc/error.h>
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
void
|
||||
__error_internal (int status, int errnum, const char *message,
|
||||
va_list args, unsigned int mode_flags);
|
||||
|
||||
void
|
||||
__error_at_line_internal (int status, int errnum, const char *file_name,
|
||||
unsigned int line_number, const char *message,
|
||||
va_list args, unsigned int mode_flags);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user