From 3288f5190bafcf1d9a71bbef7cd0b7d287fb7b86 Mon Sep 17 00:00:00 2001 From: Jose Date: Wed, 17 Jul 2013 00:09:35 +0200 Subject: Fixed ICE-5375 - Consider to add ICE_TRANSLATOR preprocessor macro --- cpp/src/slice2cpp/Main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cpp/src/slice2cpp/Main.cpp') diff --git a/cpp/src/slice2cpp/Main.cpp b/cpp/src/slice2cpp/Main.cpp index e90edc5d4fd..eb31d0414db 100644 --- a/cpp/src/slice2cpp/Main.cpp +++ b/cpp/src/slice2cpp/Main.cpp @@ -204,7 +204,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_SLICE2CPP"); if(cppHandle == 0) { @@ -220,7 +220,8 @@ compile(int argc, char* argv[]) return EXIT_FAILURE; } - if(!icecpp->printMakefileDependencies(Preprocessor::CPlusPlus, includePaths, sourceExtension, headerExtension)) + if(!icecpp->printMakefileDependencies(Preprocessor::CPlusPlus, includePaths, + "-DICE_COMPILER=ICE_SLICE2CPP", sourceExtension, headerExtension)) { return EXIT_FAILURE; } @@ -233,7 +234,7 @@ compile(int argc, char* argv[]) else { PreprocessorPtr icecpp = Preprocessor::create(argv[0], *i, cppArgs); - FILE* cppHandle = icecpp->preprocess(false); + FILE* cppHandle = icecpp->preprocess(false, "-DICE_COMPILER=ICE_SLICE2CPP"); if(cppHandle == 0) { -- cgit v1.2.3