summaryrefslogtreecommitdiff
path: root/printf/repl-vsnprintf.c
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2002-02-20 08:29:19 +0100
committertege <tege@gmplib.org>2002-02-20 08:29:19 +0100
commitfe609f86caf6ad924b053529f9d229d8b568a066 (patch)
tree5c6863348373d55043be8a9ef6cec13bff0c60e4 /printf/repl-vsnprintf.c
parentceeaecb3cc15535bc197eb47a017abbfeb02b019 (diff)
downloadgmp-fe609f86caf6ad924b053529f9d229d8b568a066.tar.gz
Conditionally include inttypes.h.
Diffstat (limited to 'printf/repl-vsnprintf.c')
-rw-r--r--printf/repl-vsnprintf.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/printf/repl-vsnprintf.c b/printf/repl-vsnprintf.c
index a9630924c..ec35c79fe 100644
--- a/printf/repl-vsnprintf.c
+++ b/printf/repl-vsnprintf.c
@@ -41,8 +41,12 @@ MA 02111-1307, USA. */
#include <stdio.h> /* for NULL */
#include <stdlib.h>
-#if HAVE_STDINT_H
-#include <stdint.h> /* for intmax_t */
+#if HAVE_INTTYPES_H
+# include <inttypes.h>
+#else
+# if HAVE_STDINT_H
+# include <stdint.h>
+# endif
#endif
#if HAVE_SYS_TYPES_H