diff options
author | Jose <jose@zeroc.com> | 2013-07-17 00:09:35 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2013-07-17 00:09:35 +0200 |
commit | 3288f5190bafcf1d9a71bbef7cd0b7d287fb7b86 (patch) | |
tree | 26fa5dbd2ff580933dc28b90af40ba9e3ca6fe7b /cpp/src/slice2freezej/Main.cpp | |
parent | Fixed ICE-5356 - Consider adding man pages for unix executables (diff) | |
download | ice-3288f5190bafcf1d9a71bbef7cd0b7d287fb7b86.tar.bz2 ice-3288f5190bafcf1d9a71bbef7cd0b7d287fb7b86.tar.xz ice-3288f5190bafcf1d9a71bbef7cd0b7d287fb7b86.zip |
Fixed ICE-5375 - Consider to add ICE_TRANSLATOR preprocessor macro
Diffstat (limited to 'cpp/src/slice2freezej/Main.cpp')
-rw-r--r-- | cpp/src/slice2freezej/Main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cpp/src/slice2freezej/Main.cpp b/cpp/src/slice2freezej/Main.cpp index 3b38ec8e667..6a80a241904 100644 --- a/cpp/src/slice2freezej/Main.cpp +++ b/cpp/src/slice2freezej/Main.cpp @@ -1771,7 +1771,7 @@ compile(int argc, char* argv[]) if(depend || dependxml) { PreprocessorPtr icecpp = Preprocessor::create(argv[0], args[idx], cppArgs); - FILE* cppHandle = icecpp->preprocess(false); + FILE* cppHandle = icecpp->preprocess(false, "-DICE_COMPILER=ICE_SLICE2FREEZEJ"); if(cppHandle == 0) { @@ -1787,7 +1787,8 @@ compile(int argc, char* argv[]) return EXIT_FAILURE; } - if(!icecpp->printMakefileDependencies(depend ? Preprocessor::Java : Preprocessor::JavaXML, includePaths)) + if(!icecpp->printMakefileDependencies(depend ? Preprocessor::Java : Preprocessor::JavaXML, includePaths, + "-DICE_COMPILER=ICE_SLICE2FREEZEJ")) { u->destroy(); return EXIT_FAILURE; @@ -1802,7 +1803,7 @@ compile(int argc, char* argv[]) else { PreprocessorPtr icecpp = Preprocessor::create(argv[0], args[idx], cppArgs); - FILE* cppHandle = icecpp->preprocess(false); + FILE* cppHandle = icecpp->preprocess(false, "-DICE_COMPILER=ICE_SLICE2FREEZEJ"); if(cppHandle == 0) { |