diff options
author | Michi Henning <michi@zeroc.com> | 2004-06-07 05:42:45 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2004-06-07 05:42:45 +0000 |
commit | 96bee65a7101ca1170f65a01763def16a502bb5f (patch) | |
tree | 9539bc03ca485663180839b6e1a6cc046251373a /cpp/src/Slice/Preprocessor.cpp | |
parent | Removed --depend option from slice2java (because it was meaningless). (diff) | |
download | ice-96bee65a7101ca1170f65a01763def16a502bb5f.tar.bz2 ice-96bee65a7101ca1170f65a01763def16a502bb5f.tar.xz ice-96bee65a7101ca1170f65a01763def16a502bb5f.zip |
Fixed broken _popen() call for Linux and did a make depend.
Diffstat (limited to 'cpp/src/Slice/Preprocessor.cpp')
-rw-r--r-- | cpp/src/Slice/Preprocessor.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp index 822a8b24ba0..7e97ac6e73a 100644 --- a/cpp/src/Slice/Preprocessor.cpp +++ b/cpp/src/Slice/Preprocessor.cpp @@ -101,9 +101,16 @@ Slice::Preprocessor::printMakefileDependencies(const string& suffix) cmd += " -M " + _args + " " + _fileName; + // + // Change the suffix for non-C++ dependency files (such as for C#) + // const char* cSuffix = suffix.c_str(); +#ifdef _WIN32 FILE* cppHandle = _popen(cmd.c_str(), "r"); +#else + FILE* cppHandle = popen(cmd.c_str(), "r"); +#endif char buf[1024]; while(fgets(buf, sizeof(buf), cppHandle) != NULL) |