summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/Preprocessor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Slice/Preprocessor.cpp')
-rw-r--r--cpp/src/Slice/Preprocessor.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp
index 3291112b253..f4f73c399dd 100644
--- a/cpp/src/Slice/Preprocessor.cpp
+++ b/cpp/src/Slice/Preprocessor.cpp
@@ -166,7 +166,7 @@ Slice::Preprocessor::preprocess(bool keepComments)
if(ret != 0 && ret < 512)
{
_cppFile = string(buffer) + "\\.preprocess." + IceUtil::generateUUID();
- _cppHandle = ::_wfopen(IceUtil::stringToWstring(_cppFile).c_str(), IceUtil::stringToWstring("w+").c_str());
+ _cppHandle = ::fopen(_cppFile.c_str(), "w+");
}
#else
_cppHandle = tmpfile();
@@ -178,11 +178,7 @@ Slice::Preprocessor::preprocess(bool keepComments)
if(_cppHandle == 0)
{
_cppFile = ".preprocess." + IceUtil::generateUUID();
-#ifdef _WIN32
- _cppHandle = ::_wfopen(IceUtil::stringToWstring(_cppFile).c_str(), IceUtil::stringToWstring("w+").c_str());
-#else
_cppHandle = ::fopen(_cppFile.c_str(), "w+");
-#endif
}
if(_cppHandle != 0)