1.1 --- a/src/platform_windows.cpp Thu Mar 26 16:46:11 2015 +0100
1.2 +++ b/src/platform_windows.cpp Thu Mar 26 16:50:58 2015 +0100
1.3 @@ -215,12 +215,12 @@
1.4 return str;
1.5 }
1.6
1.7 -int mkstemp(char *templ)
1.8 -{
1.9 - char *pathname = _mktemp(templ);
1.10 - if (errno)
1.11 - return -1;
1.12 - return _open(pathname, _O_RDWR | _O_CREAT | _O_EXCL, _S_IREAD | _S_IWRITE);
1.13 -}
1.14 +int mkstemp(char *templ)
1.15 +{
1.16 + char *pathname = _mktemp(templ);
1.17 + if (errno)
1.18 + return -1;
1.19 + return _open(pathname, _O_RDWR | _O_CREAT | _O_EXCL, _S_IREAD | _S_IWRITE);
1.20 +}
1.21
1.22 } // "C"