Bugzilla – Bug 1995
avoid redefining PI constant
Last modified: 2014-11-07 18:09:30 EST
reported by Ben Newton: http://mailman.isi.edu/pipermail/ns-developers/2014-September/012289.html suggest to replace with M_PI from math.h
Ben Newton (not a current bugzilla user) may be preparing a patch for this.
Created attachment 1899 [details] Mercurial patch file for M_PI bug fix. Changed PI references to use M_PI
Changed all references to 3.1415... to use M_PI instead. Nothing broke, although there were some pieces changed that don't have tests in place. May be very slight differences in some calculations due to resolution change. Patch is attached. Used hg diff to export the patch. Let me know if something different is needed. Note. I didn't attempt to change any of the references to 3.14... in the test suites. Thanks, Ben Newton
committed in changeset 11057:35e001b4202d