public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix stdlib-ldbl.h
@ 2006-02-03 13:51 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2006-02-03 13:51 UTC (permalink / raw)
  To: Roland McGrath; +Cc: Glibc hackers

Hi!

qecvt etc. are prototyped
#if defined __USE_SVID || defined __USE_XOPEN_EXTENDED
...
# ifdef __USE_MISC
... qecvt (...);
# endif
#endif
so the __LDBL_REDIR1_DECL has to match that.
This broke emacs build with -mlong-double-64.

2006-02-03  Jakub Jelinek  <jakub@redhat.com>

	* stdlib/bits/stdlib-ldbl.h (qecvt, qfcvt, qgcvt, qecvt_r,
	qfcvt_r): Guard with #if defined __USE_SVID || defined
	__USE_XOPEN_EXTENDED.

--- libc/stdlib/bits/stdlib-ldbl.h	2006-01-14 21:14:36.000000000 +0100
+++ libc/stdlib/bits/stdlib-ldbl.h	2006-02-03 10:46:07.000000000 +0100
@@ -33,10 +33,12 @@ __LDBL_REDIR1_DECL (strtold_l, strtod_l)
 
 __LDBL_REDIR1_DECL (__strtold_internal, __strtod_internal)
 
-#ifdef __USE_MISC
+#if defined __USE_SVID || defined __USE_XOPEN_EXTENDED
+# ifdef __USE_MISC
 __LDBL_REDIR1_DECL (qecvt, ecvt)
 __LDBL_REDIR1_DECL (qfcvt, fcvt)
 __LDBL_REDIR1_DECL (qgcvt, gcvt)
 __LDBL_REDIR1_DECL (qecvt_r, ecvt_r)
 __LDBL_REDIR1_DECL (qfcvt_r, fcvt_r)
+# endif
 #endif

	Jakub

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-02-03 13:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-03 13:51 [PATCH] Fix stdlib-ldbl.h Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).