summaryrefslogtreecommitdiff
path: root/modules/inttypes
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2015-05-26 15:00:50 -0600
committerEric Blake <eblake@redhat.com>2015-05-26 15:00:50 -0600
commitcc07f45b461e763e3d250262280272165c8d91e8 (patch)
tree823540791fd77056a1c20a1d9f5729513998f7d2 /modules/inttypes
parent21431dee118d5833e8a7dda71e527c3116fd9d5f (diff)
downloadgnulib-cc07f45b461e763e3d250262280272165c8d91e8.tar.gz
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>
Diffstat (limited to 'modules/inttypes')
-rw-r--r--modules/inttypes1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/inttypes b/modules/inttypes
index 157b59791a..6d2b875df3 100644
--- a/modules/inttypes
+++ b/modules/inttypes
@@ -6,6 +6,7 @@ m4/inttypes-pri.m4
Depends-on:
inttypes-incomplete
+extensions
configure.ac:
gl_INTTYPES_H