summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/Preprocessor.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2008-11-20 13:47:23 -0330
committerDwayne Boone <dwayne@zeroc.com>2008-11-20 13:47:23 -0330
commite23c01577a0de3602085f5e14421906e59cea698 (patch)
treecee68f5e3c314f5f5c4f8cbb784eccc70138c6ad /cpp/src/Slice/Preprocessor.cpp
parentRefactored CtrlCHandler usage in slice compilers (diff)
downloadice-e23c01577a0de3602085f5e14421906e59cea698.tar.bz2
ice-e23c01577a0de3602085f5e14421906e59cea698.tar.xz
ice-e23c01577a0de3602085f5e14421906e59cea698.zip
Use fopen() instead of _wfopen() in preprocessor for windows
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)