delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/03/10/05:11:34

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:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type
:content-transfer-encoding; q=dns; s=default; b=jKGdkJzctssQFSqA
rT/PwgE8b67PgCOiKC7Ha9y4oJqy28G4iuRI0Lpt7qTRnhn0PE+M4pq8Kv3QO6Jp
Kj20FCTcWGRF0Mfv/KDXJfGO6h8vulmaczYfPQS9ctsGm8I1pA+vm4eYIocWGMOY
eRaZoBymATehzib/4y76akaPMAk=
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:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type
:content-transfer-encoding; s=default; bh=/W6f3KRiR0ARa1opfJpPE3
v4jTE=; b=rO1InF15icLsTjaa+ARIgjb6ju1upnMrleL0jA8lVow+mJ64u/GEJc
E58KWTccahg/V/jM1TlnYfMm0EaglQaZOSuuyc4iPQ7Iu2wo+TT68PL8sGdVT1CT
oA5EyQ11pNpbLA68YhQ+lPkNu3swchfTMiaEvpKSspeMpEGhPXvsw=
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=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-lb0-f179.google.com
MIME-Version: 1.0
X-Received: by 10.152.23.169 with SMTP id n9mr659839laf.45.1394442665746; Mon, 10 Mar 2014 02:11:05 -0700 (PDT)
In-Reply-To: <20140307200832.GC2744@calimero.vinschen.de>
References: <CAKw7uVhC5X10rCZW7HY3LuAE0VUP9Ds5EWHpN9Qs08jkC7ocXw AT mail DOT gmail DOT com> <20140307200832 DOT GC2744 AT calimero DOT vinschen DOT de>
Date: Mon, 10 Mar 2014 10:11:05 +0100
Message-ID: <CAKw7uVjEEPzo4LxdSckNjEsgjbN22Wn=-Fe3+tao5GkbwvCamQ@mail.gmail.com>
Subject: Re: strtold() availability
From: =?UTF-8?Q?V=C3=A1clav_Zeman?= <vhaisman AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id s2A9BTLW011017

On 7 March 2014 21:08, Corinna Vinschen wrote:
> On Mar  7 17:04, Václav 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__ >= 199901L) ||
>> (__cplusplus >= 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.

I think that similar fix needs to be applied to `wchar.h` and `wcstold()`.

-- 
VZ

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


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