delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/03/10/06:40:08

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: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <corinna-cygwin AT cygwin DOT com>
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: <CAKw7uVhC5X10rCZW7HY3LuAE0VUP9Ds5EWHpN9Qs08jkC7ocXw AT mail DOT gmail DOT com> <20140307200832 DOT GC2744 AT calimero DOT vinschen DOT de> <CAKw7uVjEEPzo4LxdSckNjEsgjbN22Wn=-Fe3+tao5GkbwvCamQ AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CAKw7uVjEEPzo4LxdSckNjEsgjbN22Wn=-Fe3+tao5GkbwvCamQ@mail.gmail.com>
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--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019