Skip to content

Commit

Permalink
Fix building with Xcode 10 - #3458
Browse files Browse the repository at this point in the history
  • Loading branch information
hrubymar10 committed Aug 12, 2018
1 parent 29c5d25 commit 965aeb3
Show file tree
Hide file tree
Showing 69 changed files with 114 additions and 120 deletions.
12 changes: 6 additions & 6 deletions projectfiles/CodeBlocks-SCons/wesnoth.cbp
Expand Up @@ -720,8 +720,8 @@
<Unit filename="../../src/hotkey/hotkey_manager.cpp" />
<Unit filename="../../src/hotkey/hotkey_manager.hpp" />
<Unit filename="../../src/hotkey/hotkey_preferences_display.cpp" />
<Unit filename="../../src/image.cpp" />
<Unit filename="../../src/image.hpp" />
<Unit filename="../../src/picture.cpp" />
<Unit filename="../../src/picture.hpp" />
<Unit filename="../../src/image_modifications.cpp" />
<Unit filename="../../src/image_modifications.hpp" />
<Unit filename="../../src/intro.cpp" />
Expand Down Expand Up @@ -919,8 +919,8 @@
<Unit filename="../../src/serialization/unicode.hpp" />
<Unit filename="../../src/serialization/validator.cpp" />
<Unit filename="../../src/serialization/validator.hpp" />
<Unit filename="../../src/settings.cpp" />
<Unit filename="../../src/settings.hpp" />
<Unit filename="../../src/map_settings.cpp" />
<Unit filename="../../src/map_settings.hpp" />
<Unit filename="../../src/sha1.cpp" />
<Unit filename="../../src/sha1.hpp" />
<Unit filename="../../src/shared_object.hpp" />
Expand Down Expand Up @@ -1017,8 +1017,8 @@
<Unit filename="../../src/variable.hpp" />
<Unit filename="../../src/variant.cpp" />
<Unit filename="../../src/variant.hpp" />
<Unit filename="../../src/version.cpp" />
<Unit filename="../../src/version.hpp" />
<Unit filename="../../src/game_version.cpp" />
<Unit filename="../../src/game_version.hpp" />
<Unit filename="../../src/video.cpp" />
<Unit filename="../../src/video.hpp" />
<Unit filename="../../src/wesconfig.h" />
Expand Down
4 changes: 2 additions & 2 deletions projectfiles/CodeBlocks-SCons/wesnothd.cbp
Expand Up @@ -107,8 +107,8 @@
<Unit filename="../../src/tstring.hpp" />
<Unit filename="../../src/util.cpp" />
<Unit filename="../../src/util.hpp" />
<Unit filename="../../src/version.cpp" />
<Unit filename="../../src/version.hpp" />
<Unit filename="../../src/game_version.cpp" />
<Unit filename="../../src/game_version.hpp" />
<Unit filename="../../src/wesconfig.h" />
<Extensions>
<code_completion />
Expand Down
12 changes: 6 additions & 6 deletions projectfiles/CodeBlocks/wesnoth.cbp
Expand Up @@ -833,8 +833,8 @@
<Unit filename="../../src/hotkey/hotkey_item.hpp" />
<Unit filename="../../src/hotkey/hotkey_manager.cpp" />
<Unit filename="../../src/hotkey/hotkey_manager.hpp" />
<Unit filename="../../src/image.cpp" />
<Unit filename="../../src/image.hpp" />
<Unit filename="../../src/picture.cpp" />
<Unit filename="../../src/picture.hpp" />
<Unit filename="../../src/image_modifications.cpp" />
<Unit filename="../../src/image_modifications.hpp" />
<Unit filename="../../src/key.cpp" />
Expand Down Expand Up @@ -1047,8 +1047,8 @@
<Unit filename="../../src/serialization/unicode.hpp" />
<Unit filename="../../src/serialization/validator.cpp" />
<Unit filename="../../src/serialization/validator.hpp" />
<Unit filename="../../src/settings.cpp" />
<Unit filename="../../src/settings.hpp" />
<Unit filename="../../src/map_settings.cpp" />
<Unit filename="../../src/map_settings.hpp" />
<Unit filename="../../src/show_dialog.cpp" />
<Unit filename="../../src/show_dialog.hpp" />
<Unit filename="../../src/side_filter.cpp" />
Expand Down Expand Up @@ -1173,8 +1173,8 @@
<Unit filename="../../src/variable_info.cpp" />
<Unit filename="../../src/variable_info.hpp" />
<Unit filename="../../src/variable_info_private.hpp" />
<Unit filename="../../src/version.cpp" />
<Unit filename="../../src/version.hpp" />
<Unit filename="../../src/game_version.cpp" />
<Unit filename="../../src/game_version.hpp" />
<Unit filename="../../src/video.cpp" />
<Unit filename="../../src/video.hpp" />
<Unit filename="../../src/wesconfig.h" />
Expand Down
4 changes: 2 additions & 2 deletions projectfiles/CodeBlocks/wesnothd.cbp
Expand Up @@ -139,8 +139,8 @@
<Unit filename="../../src/tstring.cpp" />
<Unit filename="../../src/tstring.hpp" />
<Unit filename="../../src/util.hpp" />
<Unit filename="../../src/version.cpp" />
<Unit filename="../../src/version.hpp" />
<Unit filename="../../src/game_version.cpp" />
<Unit filename="../../src/game_version.hpp" />
<Unit filename="../../src/wesconfig.h" />
<Extensions>
<code_completion />
Expand Down
74 changes: 34 additions & 40 deletions projectfiles/Xcode/Wesnoth.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion source_lists/boost_unit_tests
Expand Up @@ -26,4 +26,4 @@ tests/test_util.cpp
tests/test_version.cpp
tests/test_whiteboard_side_actions.cpp
tests/utils/fake_display.cpp
tests/utils/game_config_manager.cpp
tests/utils/game_config_manager_tests.cpp
2 changes: 1 addition & 1 deletion source_lists/libwesnoth
Expand Up @@ -25,7 +25,7 @@ hotkey/command_executor.cpp
hotkey/hotkey_command.cpp
hotkey/hotkey_item.cpp
hotkey/hotkey_manager.cpp
image.cpp
picture.cpp
image_modifications.cpp
preferences/credentials.cpp
preferences/general.cpp
Expand Down
2 changes: 1 addition & 1 deletion source_lists/libwesnoth_core
Expand Up @@ -27,4 +27,4 @@ serialization/unicode.cpp
serialization/validator.cpp
terrain/type_data.cpp
tstring.cpp
version.cpp
game_version.cpp
2 changes: 1 addition & 1 deletion source_lists/wesnoth
Expand Up @@ -332,7 +332,7 @@ scripting/mapgen_lua_kernel.cpp
scripting/plugins/context.cpp
scripting/plugins/manager.cpp
sdl/point.cpp
settings.cpp
map_settings.cpp
side_filter.cpp
spritesheet_generator.cpp
statistics.cpp
Expand Down
2 changes: 1 addition & 1 deletion src/addon/info.cpp
Expand Up @@ -18,7 +18,7 @@
#include "config.hpp"
#include "font/pango/escape.hpp"
#include "gettext.hpp"
#include "image.hpp"
#include "picture.hpp"
#include "log.hpp"
#include "serialization/string_utils.hpp"

Expand Down
2 changes: 1 addition & 1 deletion src/addon/info.hpp
Expand Up @@ -14,7 +14,7 @@

#pragma once

#include "version.hpp"
#include "game_version.hpp"

#include "addon/validation.hpp"

Expand Down
2 changes: 1 addition & 1 deletion src/addon/manager.cpp
Expand Up @@ -27,7 +27,7 @@
#include "gui/widgets/retval.hpp"
#include "log.hpp"
#include "serialization/parser.hpp"
#include "version.hpp"
#include "game_version.hpp"
#include "serialization/string_utils.hpp"
#include "addon/client.hpp"

Expand Down
2 changes: 1 addition & 1 deletion src/ai/testing.cpp
Expand Up @@ -25,7 +25,7 @@
#include "team.hpp"
#include "units/unit.hpp"
#include "tod_manager.hpp"
#include "version.hpp"
#include "game_version.hpp"

static lg::log_domain log_ai_testing("ai/testing");
#define DBG_AI_TESTING LOG_STREAM(debug, log_ai_testing)
Expand Down
2 changes: 1 addition & 1 deletion src/build_info.cpp
Expand Up @@ -22,7 +22,7 @@
#include "formatter.hpp"
#include "gettext.hpp"
#include "serialization/unicode.hpp"
#include "version.hpp"
#include "game_version.hpp"

#include <algorithm>

Expand Down
2 changes: 1 addition & 1 deletion src/campaign_server/campaign_server.cpp
Expand Up @@ -35,7 +35,7 @@
#include "campaign_server/blacklist.hpp"
#include "campaign_server/control.hpp"
#include "campaign_server/fs_commit.hpp"
#include "version.hpp"
#include "game_version.hpp"
#include "hash.hpp"

#include <csignal>
Expand Down
2 changes: 1 addition & 1 deletion src/config.cpp
Expand Up @@ -26,7 +26,7 @@
#include "utils/const_clone.hpp"
#include "utils/functional.hpp"
#include "deprecation.hpp"
#include "version.hpp"
#include "game_version.hpp"
#include "serialization/string_utils.hpp"

#include <algorithm>
Expand Down
2 changes: 1 addition & 1 deletion src/config_cache.cpp
Expand Up @@ -23,7 +23,7 @@
#include "serialization/binary_or_text.hpp"
#include "serialization/parser.hpp"
#include "serialization/string_utils.hpp"
#include "version.hpp"
#include "game_version.hpp"

#include <boost/algorithm/string/replace.hpp>
#include <boost/iostreams/filter/gzip.hpp>
Expand Down
2 changes: 1 addition & 1 deletion src/cursor.cpp
Expand Up @@ -19,7 +19,7 @@

#include "cursor.hpp"

#include "image.hpp"
#include "picture.hpp"
#include "preferences/game.hpp"
#include "sdl/utils.hpp"

Expand Down
2 changes: 1 addition & 1 deletion src/deprecation.cpp
Expand Up @@ -17,7 +17,7 @@
#include "gettext.hpp"
#include "log.hpp"
#include "preferences/general.hpp"
#include "version.hpp"
#include "game_version.hpp"

// Set the default severity with the second parameter.
// -1 means the default is to never log on this domain.
Expand Down
2 changes: 1 addition & 1 deletion src/desktop/apple_version.hpp
Expand Up @@ -14,7 +14,7 @@

#pragma once

#include "version.hpp"
#include "game_version.hpp"

#include <string>

Expand Down
2 changes: 1 addition & 1 deletion src/desktop/apple_version.mm
Expand Up @@ -16,7 +16,7 @@

#include "apple_version.hpp"

#import "../version.hpp"
#import "game_version.hpp"

#if defined(__APPLE__) && defined(__MACH__) && defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__)
#define __IPHONEOS__ (__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__*1000)
Expand Down
2 changes: 1 addition & 1 deletion src/display.hpp
Expand Up @@ -57,7 +57,7 @@ class manager;
#include "events.hpp"
#include "font/standard_colors.hpp"
#include "game_config.hpp"
#include "image.hpp" //only needed for enums (!)
#include "picture.hpp" //only needed for enums (!)
#include "key.hpp"
#include "map/hex_rect.hpp"
#include "sdl/rect.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/editor/controller/editor_controller.cpp
Expand Up @@ -45,7 +45,7 @@
#include "help/help.hpp"
#include "preferences/game.hpp"
#include "gettext.hpp"
#include "image.hpp"
#include "picture.hpp"
#include "preferences/display.hpp"
#include "sound.hpp"
#include "units/unit.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/editor/palette/tristate_button.cpp
Expand Up @@ -16,7 +16,7 @@

#include "editor/palette/tristate_button.hpp"

#include "image.hpp"
#include "picture.hpp"
#include "log.hpp"
#include "sdl/rect.hpp"
#include "sound.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/filesystem.cpp
Expand Up @@ -24,7 +24,7 @@
#include "log.hpp"
#include "serialization/unicode.hpp"
#include "serialization/unicode_cast.hpp"
#include "version.hpp"
#include "game_version.hpp"

#include <boost/algorithm/string.hpp>
#include <boost/iostreams/device/file_descriptor.hpp>
Expand Down
2 changes: 1 addition & 1 deletion src/game_classification.cpp
Expand Up @@ -17,7 +17,7 @@
#include "config.hpp"
#include "log.hpp"
#include "serialization/string_utils.hpp"
#include "version.hpp"
#include "game_version.hpp"

static lg::log_domain log_engine("engine");
#define ERR_NG LOG_STREAM(err, log_engine)
Expand Down
2 changes: 1 addition & 1 deletion src/game_config.cpp
Expand Up @@ -20,7 +20,7 @@
#include "log.hpp"
#include "utils/general.hpp"
#include "utils/math.hpp"
#include "version.hpp"
#include "game_version.hpp"
#include "wesconfig.h"
#include "serialization/string_utils.hpp"

Expand Down
4 changes: 2 additions & 2 deletions src/game_config_manager.cpp
Expand Up @@ -33,9 +33,9 @@
#include "terrain/builder.hpp"
#include "terrain/type_data.hpp"
#include "units/types.hpp"
#include "version.hpp"
#include "game_version.hpp"
#include "theme.hpp"
#include "image.hpp"
#include "picture.hpp"

static lg::log_domain log_config("config");
#define ERR_CONFIG LOG_STREAM(err, log_config)
Expand Down
2 changes: 1 addition & 1 deletion src/game_initialization/configure_engine.cpp
Expand Up @@ -17,7 +17,7 @@
#include "mp_game_settings.hpp"
#include "preferences/credentials.hpp"
#include "preferences/game.hpp"
#include "settings.hpp"
#include "map_settings.hpp"
#include "tod_manager.hpp"

#include <cassert>
Expand Down
2 changes: 1 addition & 1 deletion src/game_initialization/lobby_data.cpp
Expand Up @@ -30,7 +30,7 @@
#include "map/exception.hpp"
#include "terrain/type_data.hpp"
#include "wml_exception.hpp"
#include "version.hpp"
#include "game_version.hpp"

#include <iterator>

Expand Down
2 changes: 1 addition & 1 deletion src/game_initialization/mp_game_utils.cpp
Expand Up @@ -19,7 +19,7 @@
#include "gettext.hpp"
#include "log.hpp"
#include "saved_game.hpp"
#include "version.hpp"
#include "game_version.hpp"
#include "wesnothd_connection_error.hpp"

static lg::log_domain log_engine("engine");
Expand Down
2 changes: 1 addition & 1 deletion src/game_initialization/multiplayer.cpp
Expand Up @@ -33,7 +33,7 @@
#include "hash.hpp"
#include "log.hpp"
#include "multiplayer_error_codes.hpp"
#include "settings.hpp"
#include "map_settings.hpp"
#include "sound.hpp"
#include "statistics.hpp"
#include "wesnothd_connection.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/game_launcher.hpp
Expand Up @@ -19,7 +19,7 @@
#include "font/font_config.hpp" // for manager
#include "preferences/game.hpp" // for manager
#include "hotkey/hotkey_manager.hpp" // for manager
#include "image.hpp" // for manager
#include "picture.hpp" // for manager
#include "saved_game.hpp" // for saved_game
#include "sound.hpp" // for music_thinker

Expand Down
2 changes: 1 addition & 1 deletion src/version.cpp → src/game_version.cpp
Expand Up @@ -12,7 +12,7 @@
See the COPYING file for more details.
*/

#include "version.hpp"
#include "game_version.hpp"

#include "lexical_cast.hpp"
#include "serialization/string_utils.hpp"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/gui/core/canvas.cpp
Expand Up @@ -25,7 +25,7 @@
#include "font/text.hpp"
#include "formatter.hpp"
#include "gettext.hpp"
#include "image.hpp"
#include "picture.hpp"

#include "gui/auxiliary/typed_formula.hpp"
#include "gui/core/log.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/gui/dialogs/addon/manager.cpp
Expand Up @@ -39,7 +39,7 @@
#include "gui/widgets/text_box.hpp"
#include "gui/widgets/window.hpp"
#include "formula/string_utils.hpp"
#include "image.hpp"
#include "picture.hpp"
#include "language.hpp"
#include "preferences/general.hpp"
#include "utils/general.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/gui/dialogs/game_load.cpp
Expand Up @@ -34,7 +34,7 @@
#include "gui/widgets/text_box.hpp"
#include "gui/widgets/toggle_button.hpp"
#include "gui/widgets/window.hpp"
#include "image.hpp"
#include "picture.hpp"
#include "language.hpp"
#include "utils/general.hpp"

Expand Down
2 changes: 1 addition & 1 deletion src/gui/dialogs/multiplayer/mp_create_game.cpp
Expand Up @@ -41,7 +41,7 @@
#include "gui/widgets/toggle_panel.hpp"
#include "log.hpp"
#include "savegame.hpp"
#include "settings.hpp"
#include "map_settings.hpp"

#include <boost/algorithm/string.hpp>

Expand Down
2 changes: 1 addition & 1 deletion src/gui/dialogs/screenshot_notification.cpp
Expand Up @@ -27,7 +27,7 @@
#include "gui/widgets/label.hpp"
#include "gui/widgets/text_box.hpp"
#include "gui/widgets/window.hpp"
#include "image.hpp"
#include "picture.hpp"

#include "utils/functional.hpp"

Expand Down
2 changes: 1 addition & 1 deletion src/gui/dialogs/terrain_layers.cpp
Expand Up @@ -21,7 +21,7 @@
#include "gui/widgets/label.hpp"
#include "gui/widgets/listbox.hpp"
#include "gui/widgets/window.hpp"
#include "image.hpp"
#include "picture.hpp"

namespace gui2
{
Expand Down

0 comments on commit 965aeb3

Please sign in to comment.