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

14 lines
339 B
Text

--- src/CapabilityListDialog.cc.orig 2007-09-22 22:47:10.000000000 +0400
+++ src/CapabilityListDialog.cc 2009-09-06 02:06:37.000000000 +0400
@@ -9,6 +9,11 @@
#include <gsl/gsl_blas.h>
#endif
+#ifdef __NetBSD__
+#define fmin(a,b) ((a)<(b)?(a):(b))
+#define fmax(a,b) ((a)>(b)?(a):(b))
+#endif
+
struct capdata {
int n;
double * x;