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=CvAgjyeUq3x8YcHI3y62n5jhsPRvWwIB+vdDQuj6fhP3qoGmpEK+I iTyRrKy6mBRm+06vWhN3GUlpYa19+czCS9/L9JYda18tV3c41J5Cue+yrBNpp86+ uK84d1QTdvExWvviXowldZB9YDyOwHBnxHqH3ow8f8EAYK8Cot2AXA= 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=dILkUIhhcb6GG6DD15CP7ysEPmQ=; b=kCDHjXBR9cEZvI/AEX0I4CyTjXTr Mbom6wY1coprpgl33kC4TxBPf90wQ1jMM+KGlNtJ+2+ajjvmrhUrtxLEWQnANFmT Aw0cczitcMpT13aule/du2u8P9+275fbnAYSGpsWJi20hfvqVstkeagnoCmOx7LZ p1iwrOus05cCwXI= 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: Mon, 10 Mar 2014 11:39:47 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: strtold() availability Message-ID: <20140310103947.GC2828@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20140307200832 DOT GC2744 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="z4+8/lEcDcG5Ke9S" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) --z4+8/lEcDcG5Ke9S Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mar 10 10:11, V=C3=A1clav Zeman wrote: > On 7 March 2014 21:08, Corinna Vinschen wrote: > > On Mar 7 17:04, V=C3=A1clav Zeman wrote: > >> Hi. > >> > >> This bit from /usr/include/stdlib.h hides the `strtold()` function > >> even though the `strtold` symbol appears to be exported from > >> `cygwin1.dll`: > >> > >> ~~~~{.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 */ > >> ~~~~ > >> > >> This in turn breaks my source because I cannot use `_GLIBCXX_USE_C99` > >> to expose some C++11 features like `std::vsnprintf()`. > >> > >> 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. >=20 > I think that similar fix needs to be applied to `wchar.h` and `wcstold()`. Not yet. Newlib doesn't provide wcstold, only wcstod. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --z4+8/lEcDcG5Ke9S Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJTHZZzAAoJEPU2Bp2uRE+g6skP+gN0mlyt7Ok1Uo+kaD/PkPQ+ VOdegEs1Vl2CDnrraM2W+UZNBVlQTZovbir5ecrlsjV/JWZdjuX4m8V1GJJrorZ+ AXylgya0+FQSmUeGxNqDrlgrBtikOKImnluhRyFBbS3AgOYyJFOXnofWI0d76pJD mKAVHJlS0QhMTs2hUMjPmteBsH9F54zLlfEIhHTfzf4NsaF0gucALCUe6OYyNOvp GRuSFpdlx/s2a9OQhnjKRl808qcJa0je6EWqnrTuEfhK8iWUYPka2i13GDNGMMdT 1alAWyBWVx0BPfWNDxU4C8GCwJRLaT4l1YftjzRm7vOxPsiM4iwe4ZmOYU7SrpZM wXniUm2vX4odQJ+9bXuzfk/zofwA8ZcQYN6tM125SU10hAMFx4KMXny9dBW9rLRO Yl8Z0Z2ljEDfYYFGEGJF1ANR9UbmHdy37FyFGmNhLGcyGHwNQoVR5iJ01Wcsuu/l yUavD//pLVo6RezLOi1dVTPfCr0UQhKmbZfdTEuAbKPR57YUFODPk3cWVu5JK4P5 w7mD1VXzFlt4YV4c6c7cOT+8VIfirgH3AiYrbVzdgw8CKr8gAxutjhHfASRaZftl gaBkS455/UHb19qS+dMUlql0dnspx+5iicAeg+1yGfrX9/6mkI78agcgJqixVYS2 nZrVpcQqopsMeyrJO+pf =u2Ep -----END PGP SIGNATURE----- --z4+8/lEcDcG5Ke9S--