summaryrefslogtreecommitdiff
path: root/math/octave-forge-geometry/files/patch-polygon.cpp
diff options
context:
space:
mode:
authorStephen Montgomery-Smith <stephen@FreeBSD.org>2025-05-04 13:48:48 -0500
committerStephen Montgomery-Smith <stephen@FreeBSD.org>2025-05-04 13:48:48 -0500
commit38b217fd5dc6edc9f8d1d6470ac694fcae7faeaf (patch)
tree13925aca6148068fdcadc8b31e52357f6a808251 /math/octave-forge-geometry/files/patch-polygon.cpp
parentmath/octave-forge-fl-core: New port. (diff)
math/octave-forge-geometry: Unbreak.
Add patches.
Diffstat (limited to 'math/octave-forge-geometry/files/patch-polygon.cpp')
-rw-r--r--math/octave-forge-geometry/files/patch-polygon.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/math/octave-forge-geometry/files/patch-polygon.cpp b/math/octave-forge-geometry/files/patch-polygon.cpp
new file mode 100644
index 000000000000..ceb023dc6029
--- /dev/null
+++ b/math/octave-forge-geometry/files/patch-polygon.cpp
@@ -0,0 +1,20 @@
+--- polygon.cpp.orig 2024-03-16 22:56:04 UTC
++++ polygon.cpp
+@@ -93,7 +93,7 @@ namespace { // start of anonymous namespace
+
+ namespace { // start of anonymous namespace
+ struct SweepEvent;
+- struct SegmentComp : public binary_function<SweepEvent*, SweepEvent*, bool> {
++ struct SegmentComp : public __binary_function<SweepEvent*, SweepEvent*, bool> {
+ bool operator() (SweepEvent* e1, SweepEvent* e2) const;
+ };
+
+@@ -116,7 +116,7 @@ namespace { // start of anonymous namespace
+ bool above (const Point& x) const { return !below (x); }
+ };
+
+- struct SweepEventComp : public binary_function<SweepEvent*, SweepEvent*, bool> {
++ struct SweepEventComp : public __binary_function<SweepEvent*, SweepEvent*, bool> {
+ bool operator() (SweepEvent* e1, SweepEvent* e2) const {
+ if (e1->p.x < e2->p.x) // Different x coordinate
+ return true;