Add the WESNOTH_VERSION define to the --preprocess option
This commit is contained in:
parent
e0318ef840
commit
1804080f6e
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue