delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
Message-ID: | <48552670.F969F5DD@yahoo.com> |
Date: | Sun, 15 Jun 2008 10:25:52 -0400 |
From: | CBFalconer <cbfalconer AT yahoo DOT com> |
X-Mailer: | Mozilla 4.75 [en] (Win98; U) |
X-Accept-Language: | en |
MIME-Version: | 1.0 |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Define of PI in math.h |
References: | <4854FC47 DOT 7080009 AT iki DOT fi> |
X-Complaints-To: | abuse AT teranews DOT com |
Organization: | www.TeraNews.com |
Lines: | 17 |
NNTP-Posting-Date: | Sun, 15 Jun 2008 10:42:30 -0400 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Andris Pavenis wrote: > > Is there any special reason why DJGPP math.h defines macro PI? > > One must have macro M_PI according to C standard AFAIK. Having > also PI breaks compilation of at least one package (I tried gpstk) I believe those (PI and M_PI) are only required for POSIX. For standard C (use -ansi -pedantic) neither should be defined. -- [mail]: Chuck F (cbfalconer at maineline dot net) [page]: <http://cbfalconer.home.att.net> Try the download section. ** Posted from http://www.teranews.com **
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |