X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkPortability.h;h=ca16fcf5809fe5dd5d80c8f8da30a507edf92e24;hb=8973673f3f984656ec3552b5d963ba7b18119d39;hp=87de4e4a4b3931205a04b821d5a6ffe86815291d;hpb=84f8597a70cab1e47bf22589d18860dfbeeb26a2;p=clitk.git diff --git a/common/clitkPortability.h b/common/clitkPortability.h index 87de4e4..ca16fcf 100755 --- a/common/clitkPortability.h +++ b/common/clitkPortability.h @@ -1,12 +1,14 @@ #ifndef CLITKPORTABILITY_H #define CLITKPORTABILITY_H +#if defined(WIN32) +# define _USE_MATH_DEFINES //Before math.h include (i.e. cmath) +#endif #include #if defined(WIN32) # define rint(x) floor(x+0.5) # define lrint(x) (long)rint(x) -# define _USE_MATH_DEFINES #endif template