Character string literals for the fprintf() and fwprintf() family of functions (PRIxxx) are declared differently in bson-compat.h and in inttypes.h.
bson-compat.h
- define PRIi32 "d"
- define PRId32 "d"
- define PRIu32 "u"
- define PRIi64 "I64i"
- define PRId64 "I64i"
- define PRIu64 "I64u"
inttypes.h
#define _PFX_8 "hh"
#define _PFX_16 "h"
#define _PFX_32 "l"
#define _PFX_64 "ll"
#define PRIi32 _PFX_32 "i"
#define PRId32 _PFX_32 "d"
#define PRIu32 _PFX_32 "u"
#define PRIi64 _PFX_64 "i"
#define PRId64 _PFX_64 "d"
#define PRIu64 _PFX_64 "u"