public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: Roland McGrath <roland@redhat.com>
Cc: Glibc hackers <libc-hacker@sources.redhat.com>
Subject: [PATCH] Fix stdlib-ldbl.h
Date: Fri, 03 Feb 2006 13:51:00 -0000	[thread overview]
Message-ID: <20060203135109.GF4625@sunsite.mff.cuni.cz> (raw)

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

                 reply	other threads:[~2006-02-03 13:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060203135109.GF4625@sunsite.mff.cuni.cz \
    --to=jakub@redhat.com \
    --cc=libc-hacker@sources.redhat.com \
    --cc=roland@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).