summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/Preprocessor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Slice/Preprocessor.cpp')
-rw-r--r--cpp/src/Slice/Preprocessor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp
index bb1b3c35c94..359885e0a7d 100644
--- a/cpp/src/Slice/Preprocessor.cpp
+++ b/cpp/src/Slice/Preprocessor.cpp
@@ -154,8 +154,10 @@ Slice::Preprocessor::preprocess(bool keepComments)
}
args.push_back("-e");
args.push_back("en_us.utf8");
+ ostringstream version;
+ version << "-DICE_VERSION=" << ICE_INT_VERSION;
+ args.push_back(version.str());
args.push_back(_fileName);
-
const char** argv = new const char*[args.size() + 1];
argv[0] = "mcpp";
for(unsigned int i = 0; i < args.size(); ++i)