blob: 4454a277495e35f3237365409e063217cfad08a2 (
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-ad,v 1.2 2007/06/30 15:22:09 joerg Exp $
--- FvwmCompositor/renderer/WindowRenderer.cxx 2007/06/02 12:23:48 1.1
+++ FvwmCompositor/renderer/WindowRenderer.cxx 2007/06/02 12:27:40
@@ -46,6 +46,20 @@
// ---------------------------------------------------------------------------
//
+#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
+
MetisseWindow * WindowRenderer::getWindow(void)
{
return _window;
|