use_dll: remove hack for Microsoft Visual C++
We don’t support that compiler, and in any case it should support C99.issue#70
parent
fd13c03401
commit
633b89db64
|
@ -913,10 +913,7 @@ DataTree::writePowerDeriv(ostream &output) const
|
||||||
<< " */" << endl
|
<< " */" << endl
|
||||||
<< "double getPowerDeriv(double x, double p, int k)" << endl
|
<< "double getPowerDeriv(double x, double p, int k)" << endl
|
||||||
<< "{" << endl
|
<< "{" << endl
|
||||||
<< "#ifdef _MSC_VER" << endl
|
<< " if (fabs(x) < " << near_zero << " && p > 0 && k > p && fabs(p-nearbyint(p)) < " << near_zero << ')' << endl
|
||||||
<< "# define nearbyint(x) (fabs((x)-floor(x)) < fabs((x)-ceil(x)) ? floor(x) : ceil(x))" << endl
|
|
||||||
<< "#endif" << endl
|
|
||||||
<< " if ( fabs(x) < " << near_zero << " && p > 0 && k > p && fabs(p-nearbyint(p)) < " << near_zero << " )" << endl
|
|
||||||
<< " return 0.0;" << endl
|
<< " return 0.0;" << endl
|
||||||
<< " else" << endl
|
<< " else" << endl
|
||||||
<< " {" << endl
|
<< " {" << endl
|
||||||
|
|
Loading…
Reference in New Issue