diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2008-02-01 16:07:46 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2008-02-01 16:07:46 -0330 |
commit | 6200ebad1c3eebcc39fbc7a28aafb7aaed5cc121 (patch) | |
tree | 6b2ad774b45a4e2b095f9910d975f5da4837a1e3 /cpp/src/Slice/Preprocessor.cpp | |
parent | Fixed Windows compile error (diff) | |
download | ice-6200ebad1c3eebcc39fbc7a28aafb7aaed5cc121.tar.bz2 ice-6200ebad1c3eebcc39fbc7a28aafb7aaed5cc121.tar.xz ice-6200ebad1c3eebcc39fbc7a28aafb7aaed5cc121.zip |
Possible fix for python/mcpp failure on Windows
Diffstat (limited to 'cpp/src/Slice/Preprocessor.cpp')
-rwxr-xr-x | cpp/src/Slice/Preprocessor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp index 10047df7cb3..7b3acd99500 100755 --- a/cpp/src/Slice/Preprocessor.cpp +++ b/cpp/src/Slice/Preprocessor.cpp @@ -157,8 +157,7 @@ Slice::Preprocessor::preprocess(bool keepComments) // we need to save handle to stdin so we can restore it // after mcpp has finished its processing. // -#ifdef _WIN32 -#else +#ifndef _WIN32 int stdin_save; stdin_save = dup(0); #endif @@ -174,6 +173,7 @@ Slice::Preprocessor::preprocess(bool keepComments) // Restore stdin. // #ifdef _WIN32 + freopen("CON", "rt", stdin); #else fflush(stdin); ::close(0); |