From d7e5c9eebcc642d06751311c612989a20aef9526 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Thu, 27 Aug 2009 16:25:15 +0000 Subject: [PATCH] fix msvc compile --- contrib/DiscreteIntegration/DILevelset.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/DiscreteIntegration/DILevelset.h b/contrib/DiscreteIntegration/DILevelset.h index 2647cbb727..55ae3d702a 100644 --- a/contrib/DiscreteIntegration/DILevelset.h +++ b/contrib/DiscreteIntegration/DILevelset.h @@ -1,7 +1,7 @@ #ifndef _gLEVELSET_H_ #define _gLEVELSET_H_ -#include <cmath> +#include <math.h> #include <vector> #include <stdio.h> @@ -79,7 +79,7 @@ public: gLevelsetPrimitive(int &tag) { if (tag < 1) { printf("Tag of the levelset (%d) must be greater than 0.\n", tag); - tag = std::fabs(tag); + tag = fabs(tag); } tag_ = tag++; } -- GitLab