Skip to content

Commit

Permalink
Merge branch 'fixup_external_incl_guards'
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Jun 29, 2014
2 parents ed60036 + 32dc074 commit 8a051a2
Show file tree
Hide file tree
Showing 27 changed files with 46 additions and 156 deletions.
1 change: 1 addition & 0 deletions projectfiles/CodeBlocks/wesnoth.cbp
Expand Up @@ -1054,6 +1054,7 @@
<Unit filename="..\..\src\unit_types.hpp" />
<Unit filename="..\..\src\util.cpp" />
<Unit filename="..\..\src\util.hpp" />
<Unit filename="..\..\src\utils\boost_function_guarded.hpp">
<Unit filename="..\..\src\utils\iterator.hpp" />
<Unit filename="..\..\src\utils\reference_counter.hpp" />
<Unit filename="..\..\src\utils\sha1.cpp" />
Expand Down
28 changes: 16 additions & 12 deletions projectfiles/VC9/wesnoth.vcproj
Expand Up @@ -16029,6 +16029,10 @@
<Filter
Name="utils"
>
<File
RelativePath="..\..\src\utils\boost_function_guarded.hpp"
>
</File>
<File
RelativePath="..\..\src\utils\iterator.hpp"
>
Expand All @@ -16037,6 +16041,18 @@
RelativePath="..\..\src\utils\reference_counter.hpp"
>
</File>
<File
RelativePath="..\..\src\utils\sha1.cpp"
>
</File>
<File
RelativePath="..\..\src\utils\sha1.hpp"
>
</File>
<File
RelativePath="..\..\src\utils\shared_object.hpp"
>
</File>
<File
RelativePath="..\..\src\utils\smart_list.hpp"
>
Expand Down Expand Up @@ -20948,18 +20964,6 @@
RelativePath="..\..\src\settings.hpp"
>
</File>
<File
RelativePath="..\..\src\utils\sha1.cpp"
>
</File>
<File
RelativePath="..\..\src\utils\sha1.hpp"
>
</File>
<File
RelativePath="..\..\src\utils\shared_object.hpp"
>
</File>
<File
RelativePath="..\..\src\show_dialog.cpp"
>
Expand Down
7 changes: 1 addition & 6 deletions src/ai/composite/ai.cpp
Expand Up @@ -29,12 +29,7 @@
#include "../../log.hpp"

#include <boost/bind.hpp>

#ifndef INCL_BOOST_FUNCTION_HPP_
#define INCL_BOOST_FUNCTION_HPP_
#include <boost/function.hpp>
#endif

#include "utils/boost_function_guarded.hpp"
#include <boost/foreach.hpp>

namespace ai {
Expand Down
7 changes: 1 addition & 6 deletions src/ai/composite/property_handler.hpp
Expand Up @@ -21,12 +21,7 @@
#ifndef AI_COMPOSITE_PROPERTY_HANDLER_HPP_INCLUDED
#define AI_COMPOSITE_PROPERTY_HANDLER_HPP_INCLUDED


#ifndef INCL_BOOST_FUNCTION_HPP_
#define INCL_BOOST_FUNCTION_HPP_
#include <boost/function.hpp>
#endif

#include "utils/boost_function_guarded.hpp"
#include <boost/foreach.hpp>

#include "config.hpp"
Expand Down
7 changes: 1 addition & 6 deletions src/ana/src/asio_server.hpp
Expand Up @@ -36,12 +36,7 @@

#include <boost/asio.hpp>
#include <boost/interprocess/smart_ptr/unique_ptr.hpp>

#ifndef INCL_BOOST_FUNCTION_HPP_
#define INCL_BOOST_FUNCTION_HPP_
#include <boost/function.hpp>
#endif

#include "utils/boost_function_guarded.hpp"

#include "../api/ana.hpp"
#include "asio_listener.hpp"
Expand Down
7 changes: 1 addition & 6 deletions src/campaign_server/campaign_server.hpp
Expand Up @@ -19,12 +19,7 @@
#include "network.hpp"
#include "server/input_stream.hpp"


#ifndef INCL_BOOST_FUNCTION_HPP_
#define INCL_BOOST_FUNCTION_HPP_
#include <boost/function.hpp>
#endif

#include "utils/boost_function_guarded.hpp"
#include <boost/scoped_ptr.hpp>
#include <boost/unordered_map.hpp>

Expand Down
7 changes: 1 addition & 6 deletions src/display.hpp
Expand Up @@ -62,12 +62,7 @@ namespace wb {

#include "overlay.hpp"


#ifndef INCL_BOOST_FUNCTION_HPP_
#define INCL_BOOST_FUNCTION_HPP_
#include <boost/function.hpp>
#endif

#include "utils/boost_function_guarded.hpp"
#include <boost/weak_ptr.hpp>
#include <boost/scoped_ptr.hpp>
#include <deque>
Expand Down
7 changes: 1 addition & 6 deletions src/gui/auxiliary/event/dispatcher.hpp
Expand Up @@ -22,12 +22,7 @@

#include "SDL_events.h"


#ifndef INCL_BOOST_FUNCTION_HPP_
#define INCL_BOOST_FUNCTION_HPP_
#include <boost/function.hpp>
#endif

#include "utils/boost_function_guarded.hpp"
#include <boost/mpl/int.hpp>
#include <boost/utility/enable_if.hpp>

Expand Down
7 changes: 1 addition & 6 deletions src/gui/auxiliary/timer.hpp
Expand Up @@ -30,12 +30,7 @@
#ifndef GUI_WIDGETS_AUXILIARY_TIMER_HPP_INCLUDED
#define GUI_WIDGETS_AUXILIARY_TIMER_HPP_INCLUDED


#ifndef INCL_BOOST_FUNCTION_HPP_
#define INCL_BOOST_FUNCTION_HPP_
#include <boost/function.hpp>
#endif

#include "utils/boost_function_guarded.hpp"

#include <SDL_types.h>

Expand Down
7 changes: 1 addition & 6 deletions src/gui/auxiliary/window_builder.hpp
Expand Up @@ -19,12 +19,7 @@
#include "gui/widgets/grid.hpp"
#include "reference_counted_object.hpp"


#ifndef INCL_BOOST_FUNCTION_HPP_
#define INCL_BOOST_FUNCTION_HPP_
#include <boost/function.hpp>
#endif

#include "utils/boost_function_guarded.hpp"

class config;
class CVideo;
Expand Down
7 changes: 1 addition & 6 deletions src/gui/dialogs/dialog.hpp
Expand Up @@ -17,12 +17,7 @@

#include "gui/dialogs/field-fwd.hpp"


#ifndef INCL_BOOST_FUNCTION_HPP_
#define INCL_BOOST_FUNCTION_HPP_
#include <boost/function.hpp>
#endif

#include "utils/boost_function_guarded.hpp"

#include <string>
#include <vector>
Expand Down
7 changes: 1 addition & 6 deletions src/gui/widgets/pane.hpp
Expand Up @@ -19,12 +19,7 @@
#include "gui/auxiliary/window_builder.hpp"
#include "gui/auxiliary/placer.hpp"


#ifndef INCL_BOOST_FUNCTION_HPP_
#define INCL_BOOST_FUNCTION_HPP_
#include <boost/function.hpp>
#endif

#include "utils/boost_function_guarded.hpp"

#include <list>

Expand Down
7 changes: 1 addition & 6 deletions src/gui/widgets/scrollbar.hpp
Expand Up @@ -18,12 +18,7 @@
#include "gui/auxiliary/notifier.hpp"
#include "gui/widgets/control.hpp"


#ifndef INCL_BOOST_FUNCTION_HPP_
#define INCL_BOOST_FUNCTION_HPP_
#include <boost/function.hpp>
#endif

#include "utils/boost_function_guarded.hpp"

namespace gui2
{
Expand Down
7 changes: 1 addition & 6 deletions src/gui/widgets/selectable.hpp
Expand Up @@ -15,12 +15,7 @@
#ifndef GUI_WIDGETS_SELECTABLE_HPP_INCLUDED
#define GUI_WIDGETS_SELECTABLE_HPP_INCLUDED


#ifndef INCL_BOOST_FUNCTION_HPP_
#define INCL_BOOST_FUNCTION_HPP_
#include <boost/function.hpp>
#endif

#include "utils/boost_function_guarded.hpp"

namespace gui2
{
Expand Down
7 changes: 1 addition & 6 deletions src/gui/widgets/settings.hpp
Expand Up @@ -24,12 +24,7 @@

#include "utils/foreach.tpp"


#ifndef INCL_BOOST_FUNCTION_HPP_
#define INCL_BOOST_FUNCTION_HPP_
#include <boost/function.hpp>
#endif

#include "utils/boost_function_guarded.hpp"

#include <string>
#include <vector>
Expand Down
7 changes: 1 addition & 6 deletions src/gui/widgets/text.hpp
Expand Up @@ -21,12 +21,7 @@

#include <string>


#ifndef INCL_BOOST_FUNCTION_HPP_
#define INCL_BOOST_FUNCTION_HPP_
#include <boost/function.hpp>
#endif

#include "utils/boost_function_guarded.hpp"

namespace gui2
{
Expand Down
7 changes: 1 addition & 6 deletions src/gui/widgets/window.hpp
Expand Up @@ -29,12 +29,7 @@
#include "events.hpp"

#include <string>

#ifndef INCL_BOOST_FUNCTION_HPP_
#define INCL_BOOST_FUNCTION_HPP_
#include <boost/function.hpp>
#endif

#include "utils/boost_function_guarded.hpp"

class CVideo;

Expand Down
7 changes: 1 addition & 6 deletions src/playturn_network_adapter.hpp
Expand Up @@ -5,12 +5,7 @@

#include "config.hpp"
#include <list>

#ifndef INCL_BOOST_FUNCTION_HPP_
#define INCL_BOOST_FUNCTION_HPP_
#include <boost/function.hpp>
#endif

#include "utils/boost_function_guarded.hpp"

/*
The purpose if this class is to preprocess incoming network data, and provide a steam that always returns just one command/action at a time.
Expand Down
7 changes: 1 addition & 6 deletions src/random_new_synced.hpp
Expand Up @@ -20,12 +20,7 @@
#include "random_new.hpp"
#include "simple_rng.hpp"


#ifndef INCL_BOOST_FUNCTION_HPP_
#define INCL_BOOST_FUNCTION_HPP_
#include <boost/function.hpp>
#endif

#include "utils/boost_function_guarded.hpp"


/*
Expand Down
7 changes: 1 addition & 6 deletions src/server/player_network.hpp
Expand Up @@ -20,12 +20,7 @@
#include "player.hpp"
#include "simple_wml.hpp"


#ifndef INCL_BOOST_FUNCTION_HPP_
#define INCL_BOOST_FUNCTION_HPP_
#include <boost/function.hpp>
#endif

#include "utils/boost_function_guarded.hpp"

namespace wesnothd {

Expand Down
7 changes: 1 addition & 6 deletions src/server/server.hpp
Expand Up @@ -25,12 +25,7 @@
#include "room_manager.hpp"
#include "simple_wml.hpp"


#ifndef INCL_BOOST_FUNCTION_HPP_
#define INCL_BOOST_FUNCTION_HPP_
#include <boost/function.hpp>
#endif

#include "utils/boost_function_guarded.hpp"
#include <boost/scoped_ptr.hpp>

class server
Expand Down
7 changes: 1 addition & 6 deletions src/synced_commands.hpp
Expand Up @@ -18,12 +18,7 @@
#include <exception>
#include "config.hpp"


#ifndef INCL_BOOST_FUNCTION_HPP_
#define INCL_BOOST_FUNCTION_HPP_
#include <boost/function.hpp>
#endif

#include "utils/boost_function_guarded.hpp"
class synced_command {
public:
/*
Expand Down
7 changes: 1 addition & 6 deletions src/synced_context.hpp
Expand Up @@ -14,12 +14,7 @@
#ifndef SYNCED_CONTEXT_H_INCLUDED
#define SYNCED_CONTEXT_H_INCLUDED


#ifndef INCL_BOOST_FUNCTION_HPP_
#define INCL_BOOST_FUNCTION_HPP_
#include <boost/function.hpp>
#endif

#include "utils/boost_function_guarded.hpp"
#include "synced_commands.hpp"
#include "synced_checkup.hpp"
#include "replay.hpp"
Expand Down
7 changes: 1 addition & 6 deletions src/tests/test_sdl_utils.hpp
Expand Up @@ -17,12 +17,7 @@

#include "sdl/utils.hpp"


#ifndef INCL_BOOST_FUNCTION_HPP_
#define INCL_BOOST_FUNCTION_HPP_
#include <boost/function.hpp>
#endif

#include "utils/boost_function_guarded.hpp"

typedef boost::function<
void(const surface&, const double, const Uint32)>
Expand Down
5 changes: 5 additions & 0 deletions src/utils/boost_function_guarded.hpp
@@ -0,0 +1,5 @@
#ifndef INCL_BOOST_FUNCTION_GUARDED_HPP_
#define INCL_BOOST_FUNCTION_GUARDED_HPP_
#include <boost/function.hpp>
#endif

7 changes: 1 addition & 6 deletions src/wesmage/filter.cpp
Expand Up @@ -19,12 +19,7 @@

#include <boost/bind.hpp>
#include <boost/foreach.hpp>

#ifndef INCL_BOOST_FUNCTION_HPP_
#define INCL_BOOST_FUNCTION_HPP_
#include <boost/function.hpp>
#endif

#include "utils/boost_function_guarded.hpp"

#include <iostream>

Expand Down
7 changes: 1 addition & 6 deletions src/whiteboard/utility.hpp
Expand Up @@ -22,12 +22,7 @@
#include <vector>
#include <deque>


#ifndef INCL_BOOST_FUNCTION_HPP_
#define INCL_BOOST_FUNCTION_HPP_
#include <boost/function.hpp>
#endif

#include "utils/boost_function_guarded.hpp"

#include "typedefs.hpp"

Expand Down

0 comments on commit 8a051a2

Please sign in to comment.