update Sat Oct 3 06:37:00 PDT 2009
[pkgsrc.git] / wip / kdeedu4 / patches / patch-ab
1 $NetBSD$
2
3 --- kmplot/kmplot/parser.cpp.orig       2008-11-29 04:33:54.000000000 +1300
4 +++ kmplot/kmplot/parser.cpp
5 @@ -102,9 +102,13 @@ ScalarFunction Parser::scalarFunctions[ 
6         {"floor", 0, floor},                            // round down to nearest integer
7         {"ceil", 0, ceil},                                      // round up to nearest integer
8         {"round", 0, round},                            // round to nearest integer
9 +#ifndef __NetBSD__
10         {"gamma", 0, tgamma},                   // gamma function
11 +#endif
12         {"lgamma", 0, lgamma},                  // log-gamma function
13 +#ifndef __NetBSD__
14         {"factorial", 0, factorial},            // factorial
15 +#endif
16         {"erfc", 0, lerfc},                     // error function
17         {"erf", 0, lerf},                       // complementary error function
18         
19 @@ -1340,9 +1344,11 @@ double larcsin(double x) {
20  double larctan(double x) {
21         return atan(x) / Parser::radiansPerAngleUnit();
22  }
23 +#ifndef __NetBSD__
24  double factorial( double x ) {
25         return tgamma(x+1);
26  }
27 +#endif
28  double legendre0( double ) {
29         return 1.0;
30  }