diff --git a/contrib/DiscreteIntegration/DILevelset.h b/contrib/DiscreteIntegration/DILevelset.h index 4ce2cb4713852b06a704fc716ab0f9e60e8735dc..b2fd31688db1aec67efec6bfaf5dddd3094ba930 100644 --- a/contrib/DiscreteIntegration/DILevelset.h +++ b/contrib/DiscreteIntegration/DILevelset.h @@ -3,6 +3,7 @@ #include <math.h> #include <stdio.h> +#include <stdlib.h> // for abs() #include <vector> // PRIMITIVE LEVELSET @@ -78,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::abs(tag); + tag = abs(tag); } tag_ = tag++; }