pkgsrc-wip/LabPlot/patches/patch-bh
Aleksej Saushev 2a1b65e8a9 "test ==" portability fix.
Provide "fmax" and "fmin" as text preprocessor definitions.
2009-09-06 07:57:53 +00:00

14 lines
340 B
Text

--- src/PlotPolar.cc.orig 2007-10-06 02:04:53.000000000 +0400
+++ src/PlotPolar.cc 2009-09-06 02:23:44.000000000 +0400
@@ -5,6 +5,11 @@
#include <kdebug.h>
#include "PlotPolar.h"
+#ifdef __NetBSD__
+#define fmin(a,b) ((a)<(b)?(a):(b))
+#define fmax(a,b) ((a)>(b)?(a):(b))
+#endif
+
using namespace std;
//! general polar Plot class