blob: e4b0210a2beb054cfacd2868ce5d7a36469c66c2 (
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
26
27
|
$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,22 @@
#include "FoldablePolygon.H"
#include "desktop/MetisseWindow.H"
+#if defined(__NetBSD__) || defined(__DragonFly__)
+static inline double
+xxxfmin(double x, double y)
+{
+ return (x < y) ? x : y;
+}
+
+static inline double
+xxxfmax(double x, double y)
+{
+ return (x > y) ? x : y;
+}
+#define fmin xxxfmin
+#define fmax xxxfmax
+#endif
+
void goodies_marcking_feedback(
GLfloat x, GLfloat y, int dist, int draw_dist, int dirs, GLfloat alpha)
{
|