URL:
  <http://gna.org/bugs/?20946>

                 Summary: Missing #include <stdint.h>
                 Project: Freeciv
            Submitted by: None
            Submitted on: Fri 05 Jul 2013 11:43:45 AM UTC
                Category: general
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: anth...@cathet.us
             Open/Closed: Open
                 Release: 
         Discussion Lock: Any
        Operating System: *BSD
         Planned Release: 

    _______________________________________________________

Details:

The following three files use intptr_t for some variables, but this type is
not defined without stdint.h:

common/aicore/path_finding.c
utility/genhash.c
utility/spechash.h

As-is, 2.4.0-beta2 does not build on OpenBSD due to this:

genhash.c: In function 'genhash_ptr_val_func':
genhash.c:165: error: 'intptr_t' undeclared (first use in this function)
genhash.c:165: error: (Each undeclared identifier is reported only once
genhash.c:165: error: for each function it appears in.)

If I #include <stdint.h> at the top of these files, everything builds.




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?20946>

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


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to