summaryrefslogtreecommitdiff
path: root/wm/metisse/patches/patch-ae
blob: 1de50bbad4568585ecbda2181a7b01b6b5cf9699 (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.1.1.1 2007/06/02 19:07:33 agc Exp $

--- FvwmCompositor/main/LayerManager.cxx	2007/06/02 12:31:01	1.1
+++ FvwmCompositor/main/LayerManager.cxx	2007/06/02 12:32:00
@@ -24,6 +24,20 @@
 #define A_PAGER_MODE_MARGIN_P 0.02
 
 // --------------------------------------------------------------------
+#ifdef __NetBSD__
+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)
 {