summaryrefslogtreecommitdiff
path: root/misc/kdeedu4/patches/patch-ae
blob: 0f0bc7d2c7abd57b5e04a4be82821fa2f871dc42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ae,v 1.1.1.1 2009/10/02 20:51:26 markd Exp $

--- kalgebra/src/graph2d.cpp.orig	2007-12-15 07:19:44.000000000 +1300
+++ kalgebra/src/graph2d.cpp
@@ -86,6 +86,11 @@ void Graph2D::drawAxes(QPainter *f, Axe 
 	//EO write coords
 }
 
+#ifdef __NetBSD__
+#define fmin(a,b) ((a)<(b)?(a):(b))
+#define fmax(a,b) ((a)>(b)?(a):(b))
+#endif
+
 void Graph2D::drawPolarAxes(QPainter *w)
 {
 	QPen ceixos;