URL:
  <http://gna.org/patch/?1113>

                 Summary: Add missing includes in order to compile under
gcc-4.3 branch
                 Project: Battle for Wesnoth
            Submitted by: bircoph
            Submitted on: Суббота 22.11.2008 at 10:46
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Hello,

current SVN HEAD have some troubles with gcc-4.3.x again.

The reason is the same as earlier: in some source files some standard
external functions like strlen/strerror, memcpy/memset, strto* are used
without the appropriate C headers like <cstring> and <cstdlib>. I dunno why
it works with older compilers, I suppose those headers were indirectly
included in some other header files.

As I noticed, some of this header were removed by mistake in commits like
r30659. So please, if you are going to remove some headers in future double
check all functions that may use them.
The rule is simple: just make sure that any function external to the local
code has an appropriate #include.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Суббота 22.11.2008 at 10:46  Name:
wesnoth-missing_includes.patch  Size: 2kB   By: bircoph

<http://gna.org/patch/download.php?file_id=5025>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?1113>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to