From 633b89db64109cc80855c3abfda510f97914f357 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Tue, 23 Jun 2020 16:00:40 +0200 Subject: [PATCH] use_dll: remove hack for Microsoft Visual C++ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We don’t support that compiler, and in any case it should support C99. --- src/DataTree.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/DataTree.cc b/src/DataTree.cc index 3e279896..df054eb5 100644 --- a/src/DataTree.cc +++ b/src/DataTree.cc @@ -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