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

--- kig/objects/circle_type.cc.orig	2007-12-10 00:02:17.000000000 +1300
+++ kig/objects/circle_type.cc
@@ -27,6 +27,11 @@
 
 #include <klocale.h>
 
+#ifdef __NetBSD__
+#define fmin(a,b) ((a) < (b) ? (a) : (b))
+#define fmax(a,b) ((a) > (b) ? (a) : (b))
+#endif
+
 static const char constructcirclethroughpointstat[] = I18N_NOOP( "Construct a circle through this point" );
 
 static const char constructcirclewithcenterstat[] = I18N_NOOP( "Construct a circle with this center" );