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 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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]: Try the download section. ** Posted from http://www.teranews.com **