diff --git a/src/team.hpp b/src/team.hpp index 1b3ec022e915..8bf34d01e01e 100644 --- a/src/team.hpp +++ b/src/team.hpp @@ -26,7 +26,16 @@ #include 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 +#else struct SDL_Color; +#endif + namespace wb { class side_actions;