From fa4df36963343518dd0e65e6c2a94577e637b99e Mon Sep 17 00:00:00 2001 From: bubnikv Date: Thu, 2 Mar 2017 17:34:53 +0100 Subject: Fix: Orientation() has been declared inline, therefore not exported. --- xs/src/clipper.cpp | 6 ------ xs/src/clipper.hpp | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) (limited to 'xs') diff --git a/xs/src/clipper.cpp b/xs/src/clipper.cpp index 1eac45a70..7ead760bf 100644 --- a/xs/src/clipper.cpp +++ b/xs/src/clipper.cpp @@ -285,12 +285,6 @@ inline Int128 Int128Mul (long64 lhs, long64 rhs) // Miscellaneous global functions //------------------------------------------------------------------------------ -inline bool Orientation(const Path &poly) -{ - return Area(poly) >= 0; -} -//------------------------------------------------------------------------------ - double Area(const Path &poly) { int size = (int)poly.size(); diff --git a/xs/src/clipper.hpp b/xs/src/clipper.hpp index 11626e396..e62e27e89 100644 --- a/xs/src/clipper.hpp +++ b/xs/src/clipper.hpp @@ -186,8 +186,8 @@ private: friend class Clipper; //to access AllNodes }; -bool Orientation(const Path &poly); double Area(const Path &poly); +inline bool Orientation(const Path &poly) { return Area(poly) >= 0; } int PointInPolygon(const IntPoint &pt, const Path &path); void SimplifyPolygon(const Path &in_poly, Paths &out_polys, PolyFillType fillType = pftEvenOdd); -- cgit v1.2.3