- got fmin, fmax

This commit is contained in:
martynas 2008-09-11 19:51:27 +00:00
parent a677746674
commit 79eeacc1d6
3 changed files with 2 additions and 28 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.8 2008/07/22 18:38:04 martynas Exp $
# $OpenBSD: Makefile,v 1.9 2008/09/11 19:51:27 martynas Exp $
COMMENT = K Desktop Environment, edu
DISTNAME = kdeedu-${VERSION}
PKGNAME = ${DISTNAME}p1
PKGNAME = ${DISTNAME}p2
SHARED_LIBS += compoundviewer 0.0 # .4.0
SHARED_LIBS += extdate 5.0 # .4.0

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-kalgebra_src_graph2d_cpp,v 1.1 2008/01/22 19:59:28 espie Exp $
--- kalgebra/src/graph2d.cpp.orig Tue Jan 22 13:26:57 2008
+++ kalgebra/src/graph2d.cpp Tue Jan 22 13:27:42 2008
@@ -84,6 +84,8 @@ void Graph2D::drawAxes(QPainter *f, Axe a)
//EO write coords
}
+inline float fmax(float a, float b) { return a > b ? a : b; }
+inline float fmin(float a, float b) { return a < b ? a : b; }
void Graph2D::drawPolarAxes(QPainter *w)
{
QPen ceixos;

View File

@ -1,14 +0,0 @@
$OpenBSD: patch-kig_objects_circle_type_cc,v 1.1.1.1 2007/03/22 22:24:33 espie Exp $
--- kig/objects/circle_type.cc.orig Tue Mar 20 12:56:05 2007
+++ kig/objects/circle_type.cc Tue Mar 20 12:56:57 2007
@@ -26,6 +26,10 @@
#include "../misc/common.h"
#include <klocale.h>
+#ifdef __OpenBSD__
+double inline fmin(double a, double b) { return a < b ? a : b; }
+double inline fmax(double a, double b) { return a < b ? b : a; }
+#endif
static const char constructcirclethroughpointstat[] = I18N_NOOP( "Construct a circle through this point" );