use_dll: remove hack for Microsoft Visual C++

We don’t support that compiler, and in any case it should support C99.
issue#70
Sébastien Villemot 2020-06-23 16:00:40 +02:00
parent fd13c03401
commit 633b89db64
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 1 additions and 4 deletions

View File

@ -913,10 +913,7 @@ DataTree::writePowerDeriv(ostream &output) const
<< " */" << endl
<< "double getPowerDeriv(double x, double p, int k)" << endl
<< "{" << endl
<< "#ifdef _MSC_VER" << 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
<< " if (fabs(x) < " << near_zero << " && p > 0 && k > p && fabs(p-nearbyint(p)) < " << near_zero << ')' << endl
<< " return 0.0;" << endl
<< " else" << endl
<< " {" << endl