diff options
Diffstat (limited to 'cpp/src/slice2cs/Main.cpp')
-rw-r--r-- | cpp/src/slice2cs/Main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cpp/src/slice2cs/Main.cpp b/cpp/src/slice2cs/Main.cpp index 0129ecfbeba..0f91002bbf3 100644 --- a/cpp/src/slice2cs/Main.cpp +++ b/cpp/src/slice2cs/Main.cpp @@ -198,7 +198,7 @@ compile(int argc, char* argv[]) if(depend) { PreprocessorPtr icecpp = Preprocessor::create(argv[0], *i, cppArgs); - FILE* cppHandle = icecpp->preprocess(false); + FILE* cppHandle = icecpp->preprocess(false, "-DICE_COMPILER=ICE_SLICE2CS"); if(cppHandle == 0) { @@ -214,7 +214,8 @@ compile(int argc, char* argv[]) return EXIT_FAILURE; } - if(!icecpp->printMakefileDependencies(Preprocessor::CSharp, includePaths)) + if(!icecpp->printMakefileDependencies(Preprocessor::CSharp, includePaths, + "-DICE_COMPILER=ICE_SLICE2CS")) { return EXIT_FAILURE; } @@ -227,7 +228,7 @@ compile(int argc, char* argv[]) else { PreprocessorPtr icecpp = Preprocessor::create(argv[0], *i, cppArgs); - FILE* cppHandle = icecpp->preprocess(true); + FILE* cppHandle = icecpp->preprocess(true, "-DICE_COMPILER=ICE_SLICE2CS"); if(cppHandle == 0) { |