This is the mail archive of the libc-hacker@sourceware.org mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix stdlib-ldbl.h


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]