URL:
<http://gna.org/patch/?6018>
Summary: Define packet_ruleset_terrain_control before use
Project: Freeciv
Submitted by: cazfi
Submitted on: Mon 20 Apr 2015 03:34:38 AM EEST
Category: general
Priority: 5 - Normal
Status: Ready For Test
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release: 2.6.0, 3.0.0
_______________________________________________________
Details:
map.h has:
#define terrain_misc packet_ruleset_terrain_control
...
extern struct terrain_misc terrain_control;
but it does not include packets.h to have "struct
packet_ruleset_terrain_control" defined (actually it's defined in
packets_gen.h, but that generated header has no guard against multiple
inclusions, so cannot be safely included directly -> bug for another ticket?)
Attached patch:
- Includes "packets.h" to map.h
- To avoid circular inclusion, replace "map.h" include with direct "tile.h"
include in packets.h
- Add direct "map.h" include to all files that need it but used to get it
through packets.h only
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 20 Apr 2015 03:34:38 AM EEST Name: PRTCInclude.patch Size: 6kB
By: cazfi
<http://gna.org/patch/download.php?file_id=24274>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?6018>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev