[Webkit-unassigned] [Bug 59249] Colliding isinf/isnan between C99 and C++0x with GCC 4.6.0

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 27 13:29:48 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=59249


Evan Martin <evan at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |evan at chromium.org




--- Comment #7 from Evan Martin <evan at chromium.org>  2011-04-27 13:29:48 PST ---
It seems the core goal is that WebKit wants to use a namespace-unqualified isinf/isnan.  Can't we hack the headers to make this just work?

E.g. in C++0x mode, in MathExtras.h, #include the file that might define the C99 isinf.  Then test for it with #ifdef, and if it's *not* present do the "using" line to get the std:: one.

That way you always exit MathExtras.h with at most one isinf in scope.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list