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 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.
Attachment:
math.h.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |