summaryrefslogtreecommitdiff
path: root/scanf
diff options
context:
space:
mode:
Diffstat (limited to 'scanf')
-rw-r--r--scanf/doscan.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/scanf/doscan.c b/scanf/doscan.c
index eecd31b7f..35273a3ca 100644
--- a/scanf/doscan.c
+++ b/scanf/doscan.c
@@ -53,10 +53,9 @@ see https://www.gnu.org/licenses/. */
#if HAVE_INTTYPES_H
# include <inttypes.h> /* for intmax_t */
-#else
-# if HAVE_STDINT_H
-# include <stdint.h>
-# endif
+#endif
+#if HAVE_STDINT_H
+# include <stdint.h>
#endif
#if HAVE_SYS_TYPES_H