mirror of
				https://sourceware.org/git/glibc.git
				synced 2025-11-03 20:53:13 +03:00 
			
		
		
		
	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.
		
			
				
	
	
		
			23 lines
		
	
	
		
			677 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			677 B
		
	
	
	
		
			C
		
	
	
	
	
	
#ifndef _ARGP_H
 | 
						|
#include <argp/argp.h>
 | 
						|
 | 
						|
/* Prototypes for internal argp.h functions.  */
 | 
						|
#include <stdarg.h>
 | 
						|
void
 | 
						|
__argp_error_internal (const struct argp_state *state, const char *fmt,
 | 
						|
		       va_list ap, unsigned int mode_flags);
 | 
						|
 | 
						|
void
 | 
						|
__argp_failure_internal (const struct argp_state *state, int status,
 | 
						|
			 int errnum, const char *fmt, va_list ap,
 | 
						|
			 unsigned int mode_flags);
 | 
						|
 | 
						|
#ifndef _ISOMAC
 | 
						|
extern __typeof (__argp_error) __argp_error attribute_hidden;
 | 
						|
extern __typeof (__argp_failure) __argp_failure attribute_hidden;
 | 
						|
extern __typeof (__argp_input) __argp_input attribute_hidden;
 | 
						|
extern __typeof (__argp_state_help) __argp_state_help attribute_hidden;
 | 
						|
#endif
 | 
						|
 | 
						|
#endif
 |