From d5d7649dc98a8b698bca05a170253513834f04bf Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Mon, 5 Dec 2011 08:57:38 +0100 Subject: [PATCH] Define mkstemp for MSVC. Not sure if it also works for other compilers on Windows --- common/clitkPortability.h | 5 +++++ 1 file changed, 5 insertions(+) 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 */ -- 2.45.1