Skip to content

Commit

Permalink
forward declare SDL_Color in unit.hpp header
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Jun 17, 2014
1 parent 4056321 commit 39d64b3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/drawable_unit.cpp
Expand Up @@ -19,6 +19,7 @@
#include "game_preferences.hpp"
#include "halo.hpp"
#include "map.hpp"
#include "sdl/utils.hpp"
#include "team.hpp"
#include "unit_animation.hpp"
#include "unit_animation_component.hpp"
Expand Down
7 changes: 4 additions & 3 deletions src/unit.cpp
Expand Up @@ -30,13 +30,14 @@
#include "play_controller.hpp"
#include "random_new.hpp"
#include "resources.hpp"
#include "scripting/lua.hpp"
#include "sdl/utils.hpp"
#include "side_filter.hpp"
#include "terrain_filter.hpp"
#include "unit_id.hpp"
#include "unit_abilities.hpp"
#include "unit_animation_component.hpp"
#include "unit_formula_manager.hpp"
#include "scripting/lua.hpp"
#include "side_filter.hpp"
#include "terrain_filter.hpp"

#include <boost/bind.hpp>
#include <boost/foreach.hpp>
Expand Down
2 changes: 1 addition & 1 deletion src/unit.hpp
Expand Up @@ -20,13 +20,13 @@
#include <boost/tuple/tuple.hpp>
#include <boost/scoped_ptr.hpp>

#include "sdl/utils.hpp" //only needed for SDL_Color
#include "unit_types.hpp"
#include "unit_map.hpp"
#include "unit_ptr.hpp"

class display;
class gamemap;
struct SDL_Color;
class team;
class unit_animation_component;
class unit_formula_manager;
Expand Down

0 comments on commit 39d64b3

Please sign in to comment.