Allow compilation in MSVC14/2015.
This commit is contained in:
parent
8365d0e2ee
commit
ba228fff54
2 changed files with 3 additions and 1 deletions
|
@ -68,7 +68,7 @@ bool game_config_manager::init_game_config(FORCE_RELOAD_CONFIG force_reload)
|
|||
// Add preproc defines according to the command line arguments.
|
||||
game_config::scoped_preproc_define multiplayer("MULTIPLAYER",
|
||||
cmdline_opts_.multiplayer);
|
||||
game_config::scoped_preproc_define test("TEST", cmdline_opts_.test);
|
||||
game_config::scoped_preproc_define test("TEST", bool(cmdline_opts_.test));
|
||||
game_config::scoped_preproc_define editor("EDITOR", jump_to_editor_);
|
||||
game_config::scoped_preproc_define title_screen("TITLE_SCREEN",
|
||||
!cmdline_opts_.multiplayer && !cmdline_opts_.test && !jump_to_editor_);
|
||||
|
|
|
@ -17,8 +17,10 @@
|
|||
|
||||
#ifdef _MSC_VER
|
||||
|
||||
#if _MSC_VER < 1900 // snprintf() is supported from MSVC 14 (2015) onwards
|
||||
#undef snprintf
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
|
||||
// Disable warning about source encoding not in current code page.
|
||||
#pragma warning(disable: 4819)
|
||||
|
|
Loading…
Add table
Reference in a new issue