X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=PrU+/rtby3IZvgRQGDquB+JQ+lYUEdqfqjq5UI93dfT1QHEXS4/Oh PMTFG619Pfj3yTg1u7o/snN6ThmzqzbrZN+ADvjHz6F5ne3l2dvttjQ8bPN9rVYx dVpSPOx/tH4A2bJlq8lnObOBYtDvEaGV4KxM+dmhcjZxphSlQPQD/s= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=52Oby2vNUcNilxxRLO7M1S6maoY=; b=wgaiCTS/1/3z6qcUoTWS19K0GY8E Z3d8u5iKeIJi4K698p24G0KwCC0wdmjOehACCgRYLDjmj9dk7U5sM0WQu7ccd5kz LbT9DJgk6fYqtqgxy4KCQWaDY6d/m0blRGXs/AVUf9I4D5qpPYrCe07XlVfYgCSM eVrQlIzYpILYddY= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Date: Fri, 7 Mar 2014 21:08:32 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: strtold() availability Message-ID: <20140307200832.GC2744@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mar 7 17:04, V=C3=A1clav Zeman wrote: > Hi. >=20 > This bit from /usr/include/stdlib.h hides the `strtold()` function > even though the `strtold` symbol appears to be exported from > `cygwin1.dll`: >=20 > ~~~~{.c} > /* On platforms where long double equals double. */ > #ifdef _LDBL_EQ_DBL > #if !defined(__STRICT_ANSI__) || (__STDC_VERSION__ >=3D 199901L) || > (__cplusplus >=3D 201103L) > extern long double strtold (const char *__restrict, char **__restrict); > #endif > #endif /* _LDBL_EQ_DBL */ > ~~~~ >=20 > This in turn breaks my source because I cannot use `_GLIBCXX_USE_C99` > to expose some C++11 features like `std::vsnprintf()`. >=20 > Shouldn't the `_LDBL_EQ_DBL` guard be removed and the function exposed > regardless of `double` and `long double` sizes? I fixed that in newlib after a discussion with my co-maintainer. strtold now gets defined if _HAVE_LONG_DOUBLE is defined. This is the case for Cygwin, for instance. Thanks for the report, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJTGidAAAoJEPU2Bp2uRE+gscsP/ilvRooZDZju+VxwDUcHDPsK 8bk6QU8dsn/SULcP8KnpbQDcLQl8lY5Ywhlki3pw7UYcUerS+BEkgfqntE/UlCH2 QQJZrJfojDSsKySC44nKjIuZtuk/xHxvaluEOA3zUyHbqboDYlPbGaIIB9jyIcwq 5SITSVV5UWdwkgWlMyZ0vAn6MwTYaaubRpxFn6BwHl76GWjcUTmItUlwZuGqDL+x Xf6rwWjPJEXQ6ozZxn6uOGRBeQ1RPj7GyU2HcF75ToUPQudPradR109jdNbQqOjy Kw37Ijf+ZXunUaeFgBN7+QKA9nFBZq1vz55/F0R5vOS4Hn1vN6v3Z+YX7nGETF7X 4QQ6xybNab46ooOgeuKcodFWM3jxuEFb4B1br1MOtHuqcfYlpm2Te67iizp0S75t +WbOCc1ufgbigMl+Ms/sgUHfmF8A4lVpZ2wLJD0AxIUNQOLT24Lao66fQUGukRCQ 0zAWWUQqGDiW4u+/p+CrZTOH6vFaazm17cAuKFTEXFrUpgAmQCQfLLDl6a7BSI3X NfYiSWQnPld5FADXguK2WGO1BDIpP4RkwptMelgQhKQvbDb8/T0+Bm+1ub2kDlC0 jVPF1ZiKn31KOhboi5AUMSsiK+jDn5YXLOfoSEuabDPytoRRz4xYde4Rt5PdIhBJ qxml033TVHWHTCTu6b7Q =KkEp -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0--