[PATCH] libcss: fix compilation of tests on x86

David Tardon dtardon at redhat.com
Sun Jan 12 11:44:35 GMT 2014


Hi,

On Sun, Jan 12, 2014 at 10:33:09AM +0000, Rob Kendrick wrote:
> On Sun, Jan 12, 2014 at 09:42:41AM +0100, David Tardon wrote:
> >  #include <ctype.h>
> >  #include <inttypes.h>
> >  #include <stdbool.h>
> > +#include <stdint.h>
> 
> ...
> 
> > -	printf("	bytecode len:%ld used:%ld\n", e->bclen, e->bcused);
> > +	printf("	bytecode len:%" PRIuMAX " used:%" PRIuMAX "\n",
> > +		(uintmax_t) e->bclen, (uintmax_t) e->bcused);
> 
> The header for these defines is inttypes.h, I thought?

stdint.h is for uintmax_t. This is already included through inttypes.h
on my system, but I am not sure if that is required. Drop the extra
include if you think it is not needed.

D.



More information about the netsurf-dev mailing list