Author: sveinung Date: Thu Jan 15 13:59:52 2015 New Revision: 27695 URL: http://svn.gna.org/viewcvs/freeciv?rev=27695&view=rev Log: Clean up includes in requirements.h
tech.h, terrain.h and unittype.h aren't used in requirements.h. Remove them. Include them directly where they are needed but used to be included via requirements.h. See patch #5711 Modified: branches/S2_6/ai/default/aidata.h branches/S2_6/common/extras.h branches/S2_6/common/requirements.h Modified: branches/S2_6/ai/default/aidata.h URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/ai/default/aidata.h?rev=27695&r1=27694&r2=27695&view=diff ============================================================================== --- branches/S2_6/ai/default/aidata.h (original) +++ branches/S2_6/ai/default/aidata.h Thu Jan 15 13:59:52 2015 @@ -18,6 +18,7 @@ /* common */ #include "fc_types.h" +#include "tech.h" /* server/advisors */ #include "advtools.h" Modified: branches/S2_6/common/extras.h URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/common/extras.h?rev=27695&r1=27694&r2=27695&view=diff ============================================================================== --- branches/S2_6/common/extras.h (original) +++ branches/S2_6/common/extras.h Thu Jan 15 13:59:52 2015 @@ -21,6 +21,7 @@ #include "base.h" #include "fc_types.h" #include "road.h" +#include "terrain.h" /* Used in the network protocol. */ #define SPECENUM_NAME extra_flag_id Modified: branches/S2_6/common/requirements.h URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/common/requirements.h?rev=27695&r1=27694&r2=27695&view=diff ============================================================================== --- branches/S2_6/common/requirements.h (original) +++ branches/S2_6/common/requirements.h Thu Jan 15 13:59:52 2015 @@ -18,11 +18,8 @@ extern "C" { #endif /* __cplusplus */ +/* common */ #include "fc_types.h" - -#include "tech.h" -#include "terrain.h" -#include "unittype.h" /* Range of requirements. * Used in the network protocol. _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits