diff options
author | Jose <jose@zeroc.com> | 2016-06-24 16:47:27 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2016-06-24 16:47:27 +0200 |
commit | f0fb3e7c6f0659cc6bfc93b48d4fa660b3b39fb9 (patch) | |
tree | c8d545f2540135fd7cc141f93072f9d3e83bfda6 /cpp/src/Slice | |
parent | OS X PHP fails to build fix (diff) | |
download | ice-f0fb3e7c6f0659cc6bfc93b48d4fa660b3b39fb9.tar.bz2 ice-f0fb3e7c6f0659cc6bfc93b48d4fa660b3b39fb9.tar.xz ice-f0fb3e7c6f0659cc6bfc93b48d4fa660b3b39fb9.zip |
Fix (ICE-7200) - _tempnam usage in Windows
Diffstat (limited to 'cpp/src/Slice')
-rw-r--r-- | cpp/src/Slice/Preprocessor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp index b5470ff19a0..26f4bee7db1 100644 --- a/cpp/src/Slice/Preprocessor.cpp +++ b/cpp/src/Slice/Preprocessor.cpp @@ -236,10 +236,10 @@ Slice::Preprocessor::preprocess(bool keepComments, const string& extraArgs) // process call _tempnam before any of them call fopen and // they will end up using the same tmp file. // - char* name = _tempnam(0, ("slice-" + IceUtil::generateUUID()).c_str()); + wchar_t* name = _wtempnam(0, IceUtil::stringToWstring("slice-" + IceUtil::generateUUID()).c_str()); if(name) { - _cppFile = name; + _cppFile = IceUtil::wstringToString(name); free(name); _cppHandle = IceUtilInternal::fopen(_cppFile, "w+"); } |