X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkPortability.h;h=3671066fce427e26fb789cb3311865b8c1e32287;hb=19b462067f2b839ebb7e7cc8ba84aa14f4152e8b;hp=1ab74f90fa056233b39cbd76f6c362d0cd0af417;hpb=01efc03d2d7e88c82197f8f500239573c8b67c39;p=clitk.git diff --git a/common/clitkPortability.h b/common/clitkPortability.h index 1ab74f9..3671066 100644 --- a/common/clitkPortability.h +++ b/common/clitkPortability.h @@ -17,12 +17,12 @@ ===========================================================================**/ #ifndef CLITKPORTABILITY_H #define CLITKPORTABILITY_H -#if defined(WIN32) +#if defined(_WIN32) # define _USE_MATH_DEFINES //Before math.h include (i.e. cmath) #endif #include -#if defined(WIN32) +#if defined(_WIN32) # define rint(x) floor(x+0.5) # define lrint(x) (long)rint(x) #endif @@ -36,4 +36,9 @@ int IsNormal(const T val) { #endif } +#if defined(_MSC_VER) +# include +# define mkstemp(x) _mktemp_s(x, sizeof(x)) +#endif + #endif /* end #define CLITKPORTABILITY_H */