Skip to content
Snippets Groups Projects
Commit 57c33d88 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

hack for MSVC: define INFINITY and NAN if necessary

parent 94c2b12e
No related branches found
No related tags found
No related merge requests found
......@@ -122,6 +122,14 @@ x_heavs(double x) //, double eps)
return (fabs(x) < eps) ? 0.5*(1+ x/eps +1/3.14*sin(3.14*x/eps)):(x<0? 0:1);
}
#if !defined(INFINITY)
#define INFINITY 1.e100
#endif
#if !defined(NAN)
#define NAN (1./0.)
#endif
double
x_delta(double x)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment