diff options
Diffstat (limited to 'cpp/src/slice2py/Main.cpp')
-rw-r--r-- | cpp/src/slice2py/Main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/slice2py/Main.cpp b/cpp/src/slice2py/Main.cpp index f2d9cc6c15d..d970dbe5557 100644 --- a/cpp/src/slice2py/Main.cpp +++ b/cpp/src/slice2py/Main.cpp @@ -439,7 +439,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")) @@ -447,7 +447,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")) @@ -455,7 +455,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"); |