This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
On Jul 30 15:12, Jon TURNEY wrote: > On 30/07/2014 14:54, Jon TURNEY wrote: > >math.h only defines M_PI and similar constants if __STRICT_ANSI__ is not > >defined. > > > >SUSv2 specifies that math.h should define some of these constants [1]. > > > >Attached is a patch to also define these constants if _XOPEN_SOURCE is > >defined appropriately. > > So bad :-( > > This patch doesn't correctly handle the case where _XOPEN_SOURCE is defined > as the empty string. Amended patch attached. You can workaround that by using the definition of __XSI_VISIBLE from <sys/cdefs.h>. It's always defined and non-empty. Corinna -- Corinna Vinschen Cygwin Maintainer Red Hat
Attachment:
pgpYxGRQpUerH.pgp
Description: PGP signature
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |