From: Simon Rit Date: Mon, 5 Dec 2011 07:57:38 +0000 (+0100) Subject: Define mkstemp for MSVC. Not sure if it also works for other compilers X-Git-Tag: v1.3.0~152 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=d5d7649dc98a8b698bca05a170253513834f04bf;p=clitk.git Define mkstemp for MSVC. Not sure if it also works for other compilers on Windows --- diff --git a/common/clitkPortability.h b/common/clitkPortability.h index 1ab74f9..7fae01e 100644 --- a/common/clitkPortability.h +++ b/common/clitkPortability.h @@ -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 */