summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/Preprocessor.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2008-03-07 11:37:05 -0330
committerDwayne Boone <dwayne@zeroc.com>2008-03-07 11:37:05 -0330
commit13cb900551b17474b6027dcb5dbf4b904a772bb9 (patch)
tree411c2351d48e52831bbf38e68372f835ad1c344d /cpp/src/Slice/Preprocessor.cpp
parentWindows compilation fix (diff)
downloadice-13cb900551b17474b6027dcb5dbf4b904a772bb9.tar.bz2
ice-13cb900551b17474b6027dcb5dbf4b904a772bb9.tar.xz
ice-13cb900551b17474b6027dcb5dbf4b904a772bb9.zip
Updated mcpp patch
Diffstat (limited to 'cpp/src/Slice/Preprocessor.cpp')
-rwxr-xr-xcpp/src/Slice/Preprocessor.cpp23
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;