Re: [hatari-devel] ikbd.c: missing #include <inttypes.h>

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Am Fri, 1 May 2020 22:50:21 +0200
schrieb Nicolas Pomarède <npomarede@xxxxxxxxxxxx>:

> Le 01/05/2020 à 20:29, Christian Zietz a écrit :
> > Hello,
> > 
> > yet again, I'm trying to compile Hatari from source myself, a
> > complicated task.

Which environment? Windows? Msys? Cygwin?

> > Among other things, it failed for me, because
> > ikbd.c uses the "PRId64" format specifier [1] which is defined in
> > inttypes.h, but it doesn't include said file. If I add...
> > 
> > #include <inttypes.h>
> > 
> > ... to ikbd.c, it can be compiled.
> > 
> > Regards
> > Christian
> > 
> > [1]
> > <https://git.tuxfamily.org/hatari/hatari.git/tree/src/ikbd.c#n3166> 
> 
> Hi
> 
> thanks for noticing this, I think Thomas forgot this include in
> recent change from 2020-04-12
> This is fixed.

Yes. It apparently wasn't necessary in the typical Linux build
environments (since this header was likely included by another system
header), and according to our CI, it even did not cause trouble on
FreeBSD and macOS to omit it, but it's certainly the right way to
include it here.

 Thomas



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/