Skip to content

Commit

Permalink
dont forward declare return values in msvc <= 2010
Browse files Browse the repository at this point in the history
there is a known compiler bug in these versions.
  • Loading branch information
gfgtdf committed Jun 18, 2014
1 parent bc9de36 commit a0e47b9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/team.hpp
Expand Up @@ -26,7 +26,16 @@
#include <boost/shared_ptr.hpp>

class gamemap;
#if defined(_MSC_VER) && _MSC_VER <= 1600
/*
This is needed because msvc up to 2010 fails to correcty forward declare this struct as a return value this case.
And will create corrupt binaries without giving a warning / error.
*/
#include <SDL_video.h>
#else
struct SDL_Color;
#endif


namespace wb {
class side_actions;
Expand Down

0 comments on commit a0e47b9

Please sign in to comment.