summaryrefslogtreecommitdiff
path: root/wm/metisse/patches/patch-ae
blob: 21f3c2b96493b4f29d3f3313e1fb8c03741032e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$NetBSD: patch-ae,v 1.3 2009/07/24 12:10:18 obache Exp $

--- FvwmCompositor/main/LayerManager.cxx.orig	2008-08-25 13:54:44.000000000 +0000
+++ FvwmCompositor/main/LayerManager.cxx
@@ -25,6 +25,20 @@
 using namespace std;
 
 // --------------------------------------------------------------------
+#if defined(__NetBSD__) || defined(__DragonFly__)
+static inline double
+fmin(double x, double y)
+{
+        return (x < y) ? x : y;
+}
+
+static inline double
+fmax(double x, double y)
+{
+        return (x > y) ? x : y;
+}
+#endif
+
 
 void LayerManager::preDisplay(void)
 {