Skip to content

Commit

Permalink
Merge branch 'include_guards_on_boost_function'
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Jun 19, 2014
2 parents c4c69d6 + 8f0fe88 commit aa99966
Show file tree
Hide file tree
Showing 24 changed files with 120 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ai/composite/ai.cpp
Expand Up @@ -29,7 +29,12 @@
#include "../../log.hpp"

#include <boost/bind.hpp>

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

#include <boost/foreach.hpp>

namespace ai {
Expand Down
5 changes: 5 additions & 0 deletions src/ai/composite/property_handler.hpp
Expand Up @@ -21,7 +21,12 @@
#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 <boost/foreach.hpp>

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

#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 "../api/ana.hpp"
#include "asio_listener.hpp"
Expand Down
5 changes: 5 additions & 0 deletions src/campaign_server/campaign_server.hpp
Expand Up @@ -19,7 +19,12 @@
#include "network.hpp"
#include "server/input_stream.hpp"


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

#include <boost/scoped_ptr.hpp>
#include <boost/unordered_map.hpp>

Expand Down
5 changes: 5 additions & 0 deletions src/display.hpp
Expand Up @@ -58,7 +58,12 @@ namespace wb {

#include "overlay.hpp"


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

#include <boost/weak_ptr.hpp>
#include <boost/scoped_ptr.hpp>
#include <deque>
Expand Down
5 changes: 5 additions & 0 deletions src/gui/auxiliary/event/dispatcher.hpp
Expand Up @@ -22,7 +22,12 @@

#include "SDL_events.h"


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

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

Expand Down
5 changes: 5 additions & 0 deletions src/gui/auxiliary/timer.hpp
Expand Up @@ -30,7 +30,12 @@
#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 <SDL_types.h>

Expand Down
5 changes: 5 additions & 0 deletions src/gui/auxiliary/window_builder.hpp
Expand Up @@ -19,7 +19,12 @@
#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


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

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


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


#include <string>
#include <vector>
Expand Down
5 changes: 5 additions & 0 deletions src/gui/widgets/pane.hpp
Expand Up @@ -19,7 +19,12 @@
#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 <list>

Expand Down
5 changes: 5 additions & 0 deletions src/gui/widgets/scrollbar.hpp
Expand Up @@ -18,7 +18,12 @@
#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


namespace gui2
{
Expand Down
5 changes: 5 additions & 0 deletions src/gui/widgets/selectable.hpp
Expand Up @@ -15,7 +15,12 @@
#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


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

#include "utils/foreach.tpp"


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


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

#include <string>


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


namespace gui2
{
Expand Down
5 changes: 5 additions & 0 deletions src/gui/widgets/window.hpp
Expand Up @@ -30,7 +30,12 @@
#include "SDL.h"

#include <string>

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


class CVideo;

Expand Down
5 changes: 5 additions & 0 deletions src/playturn_network_adapter.hpp
Expand Up @@ -5,7 +5,12 @@

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

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


/*
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
5 changes: 5 additions & 0 deletions src/random_new_synced.hpp
Expand Up @@ -19,7 +19,12 @@
#include "random_new.hpp"
#include "simple_rng.hpp"


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



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


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


namespace wesnothd {

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


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

#include <boost/scoped_ptr.hpp>

class server
Expand Down
5 changes: 5 additions & 0 deletions src/synced_commands.hpp
Expand Up @@ -17,7 +17,12 @@
#include <exception>
#include "config.hpp"


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

class synced_command {
public:
/*
Expand Down
5 changes: 5 additions & 0 deletions src/synced_context.hpp
Expand Up @@ -14,7 +14,12 @@
#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 "synced_commands.hpp"
#include "synced_checkup.hpp"
#include "replay.hpp"
Expand Down
5 changes: 5 additions & 0 deletions src/tests/test_sdl_utils.hpp
Expand Up @@ -17,7 +17,12 @@

#include "sdl/utils.hpp"


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


typedef boost::function<
void(const surface&, const double, const Uint32)>
Expand Down
5 changes: 5 additions & 0 deletions src/wesmage/filter.cpp
Expand Up @@ -19,7 +19,12 @@

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

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


#include <iostream>

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


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


#include "typedefs.hpp"

Expand Down

0 comments on commit aa99966

Please sign in to comment.