delorie.com/archives/browse.cgi | search |
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=txrgxqA2nelfCewcTWV6TAPcTwZs9w1BK7U00+o2Cv+xzwCwt0Uuk | |
tN3J9ujgFl65T9OgtXQax1rhSLSMm33Lvzaqbft/pWPXA3iV1LY9QVvq2FZOpDRz | |
/Kja88wZUUhX8gl/fGFNdNs7nLs/TeF6MvrEC1OicFPbPXsnF0WBug= | |
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=iI5QioLK65uleYT76e2Sb44VgfA=; b=VIwm1BAE+B0OhKbQVnHDyf9rmQCw | |
QlxLVK8jM35m2j73vEq619VAM6FDMSo8Is15X9AFfawhM32raRJvtIRjDfRyWhxT | |
SUTjOplXWajliY1fVdRLOZszoJfZGPR+MWEwA3AoQVaTJflFyDVXGpdb2mvtJ6lc | |
V1CfaHEwFWsq+qw= | |
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 16:40:04 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: strtold() availability |
Message-ID: | <20140310154004.GD28681@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> <20140310103947 DOT GC2828 AT calimero DOT vinschen DOT de> <CAKw7uVhqz4etpJtsO4LR4qjO-zzCx1HotDNiEtjobFgTZRefsA AT mail DOT gmail DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <CAKw7uVhqz4etpJtsO4LR4qjO-zzCx1HotDNiEtjobFgTZRefsA@mail.gmail.com> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
--xHFwDpU9dbj6ez1V Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mar 10 16:34, V=C3=A1clav Zeman wrote: > On 10 March 2014 11:39, Corinna Vinschen wrote: > > 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 **__restri= ct); > >> >> #endif > >> >> #endif /* _LDBL_EQ_DBL */ > >> >> ~~~~ > >> >> > >> >> This in turn breaks my source because I cannot use `_GLIBCXX_USE_C9= 9` > >> >> to expose some C++11 features like `std::vsnprintf()`. > >> >> > >> >> Shouldn't the `_LDBL_EQ_DBL` guard be removed and the function expo= sed > >> >> 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. > >> > >> I think that similar fix needs to be applied to `wchar.h` and `wcstold= ()`. > > > > Not yet. Newlib doesn't provide wcstold, only wcstod. >=20 > I see this in `/usr/include/wchar.h`: >=20 > ~~~~{.c} > /* On platforms where long double equals double. */ > #ifdef _LDBL_EQ_DBL > long double _EXFUN(wcstold, (const wchar_t *, wchar_t **)); > #endif /* _LDBL_EQ_DBL */ > ~~~~ Yes. And looking into the wcstold source you'd have seen this: /* On platforms where long double is as wide as double. */ #ifdef _LDBL_EQ_DBL long double wcstold (const wchar_t *__restrict nptr, wchar_t **__restrict endptr) { return wcstod(nptr, endptr); } #endif /* _LDBL_EQ_DBL */ Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --xHFwDpU9dbj6ez1V Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJTHdzUAAoJEPU2Bp2uRE+gSAoP/RRcoK7v+7zxjCyOMI9ySsjm YqAaoXUQxQLOjM3HuyPLJu8A+1YmmlXHEPd3tBgLWbNAFnKoRlFxmFRcW1VtRizu b+EWMJLAa3ZFEsVQboXcX/vzbdNdiELuUahWgjEYfIAxKm3XfufO3RDCpYxdJZK0 hcXQJpcMbZMcR/XWsuX/T+0wGXb1lHMnMpuiFDr6RGLP9ACdBYbL9pin5R4u0GNN 2BE9kEvgpcldl05EyvjTLSyZOQqoE2quak7ETu6qP5IeNJkNzE46M1pe1CelJh3m dQmDWXFgeAaf8KXKVf4ltpOrzxUweIWrqBmOjmcYEHMOJzloErNzZQWeRBte4Lbu h0c0V/MnX/8+4KZCoK+AsLxtjUN8T/fzfhTcSJhVjtb+KfK5+A8HZkgASZaTUj1D BWVGfKBqo0D7YKiRXqLgfLKREjKdIU65t4xh3DuWSs0mqyr3GsXPJmBtNN4QEZEw 95puMXWAm/FLknSPJcvqHYWaOIT8bjXjaKkqa+5PxfR2JvVQFvcRsy/UhA9P1lrr XNs6zfq62Gw5+4C9aaftBvbQ8Awy38pGOL6BskxlFeqvhc59PGJhC7W/YWZN8Q1a u+tRLuM+xl51BN15rC7TxM9AMzoNu0C5/2geTJPbwv/uiH5UBFmAFkW1VbhbrGso pCexClX7cj5fzbYitY68 =/YVf -----END PGP SIGNATURE----- --xHFwDpU9dbj6ez1V--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |