• Eric Blake's avatar
    inttypes: force correct mingw PRIdMAX even without <stdio.h> · cc07f45b
    Eric Blake authored
    The mingw trick of using __USE_MINGW_ANSI_STDIO only changes the
    definitions in <inttypes.h> if <stdio.h> is also included.  But
    since we want to always use the __gnu_printf__ flavor when
    available, we want to make sure that including <inttypes.h> in
    isolation will give the desired "lld" answer.
    Reported by Assaf Gordon.
    * modules/inttypes (Depends-on): Require extensions, so that mingw
    always uses GNU style inttypes.
    * lib/inttypes.in.h: On mingw, include <stdio.h>.
    Signed-off-by: 's avatarEric Blake <eblake@redhat.com>