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

14 lines
404 B
Text

--- src/SpreadsheetValuesDialog.cc.orig 2007-09-22 23:01:16.000000000 +0400
+++ src/SpreadsheetValuesDialog.cc 2009-09-06 03:56:28.000000000 +0400
@@ -14,6 +14,11 @@
#include "LTableItem.h"
#include "defs.h"
+#ifdef __NetBSD__
+#define fmin(a,b) ((a)<(b)?(a):(b))
+#define fmax(a,b) ((a)>(b)?(a):(b))
+#endif
+
#include "parser_struct.h"
extern "C" con constants[];
extern "C" init arith_fncts[];