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

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:date:message-id:subject:from:to
:content-type; q=dns; s=default; b=rzO4GGZJIz6+uGbrXexrg7dbdyZZf
9azt3vbcs36LDOEwpiO4Fm4wRjU9N/vPS/9WZ/Uf0Bk2NtvAz3sKfzVzV31a32/h
chOTxxXTwE1jy/4UISbpz2+0VYKdK0Tmb62YCErxTqNcfHFE9ic0Z1qj+vxf9WSO
W0SuicrG0QBFqk=
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:date:message-id:subject:from:to
:content-type; s=default; bh=LYVD8vAguKDu+o6+WtOz+IStG9Y=; b=JMV
N1l7sdmJ4vUb2fkiIadf/5YupksKXnOQnjdjdMZ1nHgMq2l/zJKgVQ9Cxeyi3wLm
VFIKR/1g679GrMFb6xvPBFl6St1zzdqXUmrYwKt4G3U3UzBm50WrjAB6eEjGCtQP
z0aN2b0unAGa1PYyaSdKzicTJ7WpGEM3v/YkbtK0=
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-la0-f44.google.com
MIME-Version: 1.0
X-Received: by 10.112.150.6 with SMTP id ue6mr137685lbb.86.1394208280819; Fri, 07 Mar 2014 08:04:40 -0800 (PST)
Date: Fri, 7 Mar 2014 17:04:40 +0100
Message-ID: <CAKw7uVhC5X10rCZW7HY3LuAE0VUP9Ds5EWHpN9Qs08jkC7ocXw@mail.gmail.com>
Subject: strtold() availability
From: =?UTF-8?Q?V=C3=A1clav_Zeman?= <vhaisman AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

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?

-- 
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