URL:
<http://gna.org/patch/?4448>
Summary: Restore SDL.h includes to source files containing
main()
Project: Freeciv
Submitted by: cazfi
Submitted on: Thu 23 Jan 2014 07:21:17 AM EET
Category: bootstrap
Priority: 5 - Normal
Status: Ready For Test
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release: 2.5.0, 2.6.0
_______________________________________________________
Details:
SDL.h includes were removed in patch #4423, but despite the code happily
compiling (not needing any definitions from SDL.h for that), it works
differently. SDL.h has macro "main" to rename our main() out of the way so it
can inject its own instead.
Attached patch restores those includes, with comments explaining why they are
needed.
We can get rid of them when we drop support for SDL-1.2 mixer version. SDL2
implementation is cleaner.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thu 23 Jan 2014 07:21:18 AM EET Name: RestoreSDLMain.patch Size: 5kB
By: cazfi
<http://gna.org/patch/download.php?file_id=19828>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?4448>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev