summaryrefslogtreecommitdiff
path: root/cpp/src/slice2vb/Main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2vb/Main.cpp')
-rw-r--r--cpp/src/slice2vb/Main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/slice2vb/Main.cpp b/cpp/src/slice2vb/Main.cpp
index 7e107af12bb..259262a9367 100644
--- a/cpp/src/slice2vb/Main.cpp
+++ b/cpp/src/slice2vb/Main.cpp
@@ -102,7 +102,7 @@ main(int argc, char* argv[])
vector<string> optargs = opts.argVec("D");
for(vector<string>::const_iterator i = optargs.begin(); i != optargs.end(); ++i)
{
- cppArgs += " -D" + *i;
+ cppArgs += " -D\"" + *i + "\"";
}
}
if(opts.isSet("U"))
@@ -110,7 +110,7 @@ main(int argc, char* argv[])
vector<string> optargs = opts.argVec("U");
for(vector<string>::const_iterator i = optargs.begin(); i != optargs.end(); ++i)
{
- cppArgs += " -U" + *i;
+ cppArgs += " -U\"" + *i + "\"";
}
}
if(opts.isSet("I"))
@@ -118,7 +118,7 @@ main(int argc, char* argv[])
includePaths = opts.argVec("I");
for(vector<string>::const_iterator i = includePaths.begin(); i != includePaths.end(); ++i)
{
- cppArgs += " -I" + *i;
+ cppArgs += " -I\"" + *i + "\"";
}
}
preprocess = opts.isSet("E");