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

14 lines
322 B
Text

--- src/Spreadsheet.cc.orig 2008-01-06 13:17:52.000000000 +0300
+++ src/Spreadsheet.cc 2009-09-06 03:53:19.000000000 +0400
@@ -50,6 +50,11 @@
//#include <vector>
#endif
+#ifdef __NetBSD__
+#define fmin(a,b) ((a)<(b)?(a):(b))
+#define fmax(a,b) ((a)>(b)?(a):(b))
+#endif
+
#include <exception>
using namespace std;