Add the WESNOTH_VERSION define to the --preprocess option

This commit is contained in:
Timotei Dolean 2011-10-05 17:52:43 +00:00
parent e0318ef840
commit 1804080f6e

View file

@ -33,6 +33,7 @@
#include "statistics.hpp"
#include "serialization/parser.hpp"
#include "serialization/validator.hpp"
#include "version.hpp"
#include <cerrno>
#include <clocale>
@ -262,6 +263,9 @@ static int process_command_args(const commandline_options& cmdline_opts) {
}
}
// add the WESNOTH_VERSION define
defines_map["WESNOTH_VERSION"] = preproc_define(game_config::wesnoth_version.str());
std::cerr << "added " << defines_map.size() << " defines.\n";
// preprocess core macros first if we don't skip the core