From e23c01577a0de3602085f5e14421906e59cea698 Mon Sep 17 00:00:00 2001 From: Dwayne Boone Date: Thu, 20 Nov 2008 13:47:23 -0330 Subject: Use fopen() instead of _wfopen() in preprocessor for windows --- cpp/src/Slice/Preprocessor.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'cpp/src/Slice/Preprocessor.cpp') 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) -- cgit v1.2.3