]> Savannah Git Hosting - gnulib.git/commit
inttypes: force correct mingw PRIdMAX even without <stdio.h>
authorEric Blake <eblake@redhat.com>
Tue, 26 May 2015 21:00:50 +0000 (15:00 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 26 May 2015 21:00:50 +0000 (15:00 -0600)
commitcc07f45b461e763e3d250262280272165c8d91e8
tree823540791fd77056a1c20a1d9f5729513998f7d2
parent21431dee118d5833e8a7dda71e527c3116fd9d5f
inttypes: force correct mingw PRIdMAX even without <stdio.h>

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: Eric Blake <eblake@redhat.com>
ChangeLog
lib/inttypes.in.h
modules/inttypes