http://bugs.freedesktop.org/show_bug.cgi?id=24318
Jon TURNEY jon.tur...@dronecode.org.uk changed:
What|Removed |Added
Attachment #30074|0 |1
is
http://bugs.freedesktop.org/show_bug.cgi?id=24318
--- Comment #9 from Jon TURNEY jon.tur...@dronecode.org.uk 2009-10-24
10:17:59 PST ---
Created an attachment (id=30659)
-- (http://bugs.freedesktop.org/attachment.cgi?id=30659)
Remove the various definitions of M_PI, except in compiler.h
http://bugs.freedesktop.org/show_bug.cgi?id=24318
--- Comment #11 from Jon TURNEY jon.tur...@dronecode.org.uk 2009-10-24
10:24:29 PST ---
Attached a couple of patches with an effort to do this better.
As written, this falls back to explicitly defining M_PI using -D o the compiler
command
http://bugs.freedesktop.org/show_bug.cgi?id=24318
Jon TURNEY jon.tur...@dronecode.org.uk changed:
What|Removed |Added
Status|RESOLVED|REOPENED
http://bugs.freedesktop.org/show_bug.cgi?id=24318
--- Comment #8 from Matt Turner matts...@gmail.com 2009-10-07 06:37:45 PST
---
IIRC when compiling with gcc -ansi, M_PI isn't defined.
In my math.h, its definition is wrapped in '#if defined __USE_BSD || defined
__USE_XOPEN'
--
Configure
http://bugs.freedesktop.org/show_bug.cgi?id=24318
Brian Paul brian.e.p...@gmail.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://bugs.freedesktop.org/show_bug.cgi?id=24318
--- Comment #3 from Jon TURNEY jon.tur...@dronecode.org.uk 2009-10-05
10:34:51 PST ---
(In reply to comment #2)
NAK!!! The only systems where I have seen M_PI not defined is MSVC. On MSVC
it is not defined /by default/, but it can be
http://bugs.freedesktop.org/show_bug.cgi?id=24318
--- Comment #4 from Brian Paul brian.e.p...@gmail.com 2009-10-05 10:38:27
PST ---
Just a historical note: I recall needing the #ifndef M_PI stuff many years ago
on some Unix variants (HP-UX?), before Mesa was running on Windows.
If you want
http://bugs.freedesktop.org/show_bug.cgi?id=24318
--- Comment #5 from Jon TURNEY jon.tur...@dronecode.org.uk 2009-10-05
11:02:33 PST ---
I'll see if I can cook up a patch to do this 'properly' (or at least 'better')
For the compiler/header combination I have, -std=c99 -U__STRICT_ANSI__
http://bugs.freedesktop.org/show_bug.cgi?id=24318
--- Comment #6 from Tom Fogal tfo...@alumni.unh.edu 2009-10-05 11:12:15 PST
---
bugzilla-dae...@freedesktop.org writes:
http://bugs.freedesktop.org/show_bug.cgi?id=24318
--- Comment #2 from Ian Romanick i...@freedesktop.org 2009-10-05
10 matches
Mail list logo