On Fri, May 09, 2014 at 05:24:18PM +0200 I heard the voice of
Tadziu Hoffmann, and lo! it spake thus:
> 
> I needed
> 
>   #include <stdint.h>
> 
> in util.c (as suggested in the comment) for the definitions of
> uint16_t and uint32_t.

Alrighty.  It already came in through some other header on my system,
so I hoped it might elsewhere.

I've added inttypes.h to util.c by default.  stdint.h really gives us
what we need; inttypes.h is a superset, bringing in other stuff we
don't.  However, there are systems that don't have stdint (which is
required by C99), but do have inttypes like (in my experience) FreeBSD
4, and (in other research I've done) Solaris versions like 7 and 9.
I'm not aware of any systems the other way around.

So when we hit somebody who doesn't have inttypes, that probably means
we'll need to start getting extra creative in conditionalizing stuff.
Let's not have that happen    :)


-- 
Matthew Fuller     (MF4839)   |  [email protected]
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
           On the Internet, nobody can hear you scream.

Reply via email to