summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2005-04-27 04:51:06 +0000
committerMichi Henning <michi@zeroc.com>2005-04-27 04:51:06 +0000
commit2495f3124b35e0abca51c6d168e99e48bffab0aa (patch)
tree15f622c91d4d30efa6598c5ece5229124f320957 /cpp/src
parentupdated java impl. (diff)
downloadice-2495f3124b35e0abca51c6d168e99e48bffab0aa.tar.bz2
ice-2495f3124b35e0abca51c6d168e99e48bffab0aa.tar.xz
ice-2495f3124b35e0abca51c6d168e99e48bffab0aa.zip
Fixed http://www.zeroc.com/vbulletin/showthread.php?p=5727#post5727
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Slice/Preprocessor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp
index b05881b5d0d..40e0df6c46b 100644
--- a/cpp/src/Slice/Preprocessor.cpp
+++ b/cpp/src/Slice/Preprocessor.cpp
@@ -71,7 +71,7 @@ Slice::Preprocessor::preprocess(bool keepComments)
cmd += " -C";
}
- cmd += " " + _args + " " + _fileName;
+ cmd += " " + _args + " \"" + _fileName + "\"";
//
// Open a pipe for reading to redirect icecpp output to _cppHandle.
@@ -99,7 +99,7 @@ Slice::Preprocessor::printMakefileDependencies(Language lang)
return;
}
- cmd += " -M " + _args + " " + _fileName;
+ cmd += " -M " + _args + " \"" + _fileName + "\"";
#ifdef _WIN32
FILE* cppHandle = _popen(cmd.c_str(), "r");