Author: sveinung
Date: Thu Jan 15 14:00:23 2015
New Revision: 27696

URL: http://svn.gna.org/viewcvs/freeciv?rev=27696&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_5/common/base.h
    branches/S2_5/common/requirements.h

Modified: branches/S2_5/common/base.h
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/common/base.h?rev=27696&r1=27695&r2=27696&view=diff
==============================================================================
--- branches/S2_5/common/base.h (original)
+++ branches/S2_5/common/base.h Thu Jan 15 14:00:23 2015
@@ -23,6 +23,7 @@
 /* common */
 #include "fc_types.h"
 #include "requirements.h"
+#include "unittype.h"
 
 struct strvec;          /* Actually defined in "utility/string_vector.h". */
 

Modified: branches/S2_5/common/requirements.h
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/common/requirements.h?rev=27696&r1=27695&r2=27696&view=diff
==============================================================================
--- branches/S2_5/common/requirements.h (original)
+++ branches/S2_5/common/requirements.h Thu Jan 15 14:00:23 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

Reply via email to