Changeset 147972 in webkit


Ignore:
Timestamp:
Apr 8, 2013 6:27:49 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] MathExtras: macros defined in math.h conflict with the real functions
https://bugs.webkit.org/show_bug.cgi?id=112683

Patch by Alberto Garcia <agarcia@igalia.com> on 2013-04-08
Reviewed by Darin Adler.

After calls to signbit and friends were prefixed with std:: in
r143232, the BlackBerry port no longer compiles.

The solution is to get rid of the macros defined in math.h and use
the real functions instead.

  • wtf/MathExtras.h:
Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r147937 r147972  
     12013-04-08  Alberto Garcia  <agarcia@igalia.com>
     2
     3        [BlackBerry] MathExtras: macros defined in math.h conflict with the real functions
     4        https://bugs.webkit.org/show_bug.cgi?id=112683
     5
     6        Reviewed by Darin Adler.
     7
     8        After calls to signbit and friends were prefixed with std:: in
     9        r143232, the BlackBerry port no longer compiles.
     10
     11        The solution is to get rid of the macros defined in math.h and use
     12        the real functions instead.
     13
     14        * wtf/MathExtras.h:
     15
    1162013-04-08  Max Vujovic  <mvujovic@adobe.com>
    217
  • trunk/Source/WTF/wtf/MathExtras.h

    r147894 r147972  
    4949// into the standard namespace.
    5050#include <math.h>
     51// These macros from math.h conflict with the real functions in the std namespace.
     52#undef signbit
     53#undef isnan
     54#undef isinf
     55#undef isfinite
    5156#endif
    5257
Note: See TracChangeset for help on using the changeset viewer.