diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2008-03-07 11:37:05 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2008-03-07 11:37:05 -0330 |
commit | 13cb900551b17474b6027dcb5dbf4b904a772bb9 (patch) | |
tree | 411c2351d48e52831bbf38e68372f835ad1c344d /cpp/src/Slice/Preprocessor.cpp | |
parent | Windows compilation fix (diff) | |
download | ice-13cb900551b17474b6027dcb5dbf4b904a772bb9.tar.bz2 ice-13cb900551b17474b6027dcb5dbf4b904a772bb9.tar.xz ice-13cb900551b17474b6027dcb5dbf4b904a772bb9.zip |
Updated mcpp patch
Diffstat (limited to 'cpp/src/Slice/Preprocessor.cpp')
-rwxr-xr-x | cpp/src/Slice/Preprocessor.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp index 2a26aa026af..b5efe23096e 100755 --- a/cpp/src/Slice/Preprocessor.cpp +++ b/cpp/src/Slice/Preprocessor.cpp @@ -153,17 +153,6 @@ Slice::Preprocessor::preprocess(bool keepComments) } // - // Mcpp redirects stdin which causes problems for Python - // and Ruby applications which use loadSlice. Therefore - // we need to save handle to stdin so we can restore it - // after mcpp has finished its processing. - // -#ifndef _WIN32 - int stdin_save; - stdin_save = dup(0); -#endif - - // // Call mcpp using memory buffer. // mcpp_use_mem_buffers(1); @@ -171,18 +160,6 @@ Slice::Preprocessor::preprocess(bool keepComments) delete[] argv; // - // Restore stdin. - // -#ifdef _WIN32 - freopen("CON", "rt", stdin); -#else - fflush(stdin); - ::close(0); - dup2(stdin_save, 0); - ::close(stdin_save); -#endif - - // // Write output to temporary file. Print errors to stderr. // string result; |