summaryrefslogtreecommitdiff
path: root/wm/metisse/patches/patch-ag
diff options
context:
space:
mode:
Diffstat (limited to 'wm/metisse/patches/patch-ag')
-rw-r--r--wm/metisse/patches/patch-ag10
1 files changed, 6 insertions, 4 deletions
diff --git a/wm/metisse/patches/patch-ag b/wm/metisse/patches/patch-ag
index 573829041e9..e4b0210a2be 100644
--- a/wm/metisse/patches/patch-ag
+++ b/wm/metisse/patches/patch-ag
@@ -1,23 +1,25 @@
-$NetBSD: patch-ag,v 1.1 2009/07/24 12:10:18 obache Exp $
+$NetBSD: patch-ag,v 1.2 2010/10/22 17:55:28 drochner Exp $
--- FvwmCompositor/renderer/goodies.cxx.orig 2008-06-26 12:32:30.000000000 +0000
+++ FvwmCompositor/renderer/goodies.cxx
-@@ -22,6 +22,20 @@
+@@ -22,6 +22,22 @@
#include "FoldablePolygon.H"
#include "desktop/MetisseWindow.H"
+#if defined(__NetBSD__) || defined(__DragonFly__)
+static inline double
-+fmin(double x, double y)
++xxxfmin(double x, double y)
+{
+ return (x < y) ? x : y;
+}
+
+static inline double
-+fmax(double x, double y)
++xxxfmax(double x, double y)
+{
+ return (x > y) ? x : y;
+}
++#define fmin xxxfmin
++#define fmax xxxfmax
+#endif
+
void goodies_marcking_feedback(