Title: [186991] trunk/Source/WebCore
Revision
186991
Author
[email protected]
Date
2015-07-18 05:30:42 -0700 (Sat, 18 Jul 2015)

Log Message

REGRESSION (r186976): Use piFloat instead of M_PI

Attempt to fix the following build failure:

    PathUtilities.cpp(183): error C2065: 'M_PI' : undeclared identifier [...\Source\WebCore\WebCore.vcxproj\WebCore.vcxproj]

* platform/graphics/PathUtilities.cpp:
(WebCore::walkGraphAndExtractPolygon): Use piFloat since M_PI is
not defined on Windows.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (186990 => 186991)


--- trunk/Source/WebCore/ChangeLog	2015-07-18 12:20:25 UTC (rev 186990)
+++ trunk/Source/WebCore/ChangeLog	2015-07-18 12:30:42 UTC (rev 186991)
@@ -1,5 +1,17 @@
 2015-07-18  David Kilzer  <[email protected]>
 
+        REGRESSION (r186976): Use piFloat instead of M_PI
+
+        Attempt to fix the following build failure:
+
+            PathUtilities.cpp(183): error C2065: 'M_PI' : undeclared identifier [...\Source\WebCore\WebCore.vcxproj\WebCore.vcxproj]
+
+        * platform/graphics/PathUtilities.cpp:
+        (WebCore::walkGraphAndExtractPolygon): Use piFloat since M_PI is
+        not defined on Windows.
+
+2015-07-18  David Kilzer  <[email protected]>
+
         REGRESSION (r186976): Windows build broke due to missing definition of M_PI
 
         Attempt to fix the following build failure:

Modified: trunk/Source/WebCore/platform/graphics/PathUtilities.cpp (186990 => 186991)


--- trunk/Source/WebCore/platform/graphics/PathUtilities.cpp	2015-07-18 12:20:25 UTC (rev 186990)
+++ trunk/Source/WebCore/platform/graphics/PathUtilities.cpp	2015-07-18 12:30:42 UTC (rev 186991)
@@ -180,7 +180,7 @@
             float crossZ = nextVec.x() * currentVec.y() - nextVec.y() * currentVec.x();
 
             if (crossZ < 0)
-                angle = (2 * M_PI) - angle;
+                angle = (2 * piFloat) - angle;
 
             if (!nextNode || angle > nextNodeAngle) {
                 nextNode = potentialNextNode;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to