X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkPortability.h;h=3671066fce427e26fb789cb3311865b8c1e32287;hb=d55f025b18f68066a52b8f33c2dc6481e82c2580;hp=1ab74f90fa056233b39cbd76f6c362d0cd0af417;hpb=573d80d0f7a17607d2ee883c21c940c0ba020282;p=clitk.git diff --git a/common/clitkPortability.h b/common/clitkPortability.h old mode 100755 new mode 100644 index 1ab74f9..3671066 --- 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 */