On Sat, 2022-09-24 at 21:09 +0300, Eli Zaretskii wrote: > MinGW does have inttypes.h, if you want to use PRId64 or somesuch, > and > if the other supported platforms have that. > > I'm fine with using our own definition for PRId64, if that's what you > prefer. On makeint.h, I presume?
makeint.h already has HAVE_MAKEINT_H and it's set by configure and all the custom config.h (or should be). So I guess afterward it would be something like, #ifndef PRId64 # ifdef WINDOWS32 # define PRId64 "I64d" # else # define PRId64 "lld" # endif #endif or something like that...?