summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-06-06 22:30:28 +0000
committerJim Meyering <jim@meyering.net>2003-06-06 22:30:28 +0000
commit8f92b22d98c2f2e68477bea5d9f21ccbfa52c814 (patch)
tree2d9054fa320e36474cf5a7b1a431142fbc3965fe
parent563aaa8d0b3390b57d14c11b3c95880096627a06 (diff)
downloadcoreutils-8f92b22d98c2f2e68477bea5d9f21ccbfa52c814.tar.xz
Include <stdint.h> as an alternative to <inttypes.h>.
-rw-r--r--lib/strtoimax.c4
-rw-r--r--lib/xstrtol.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/strtoimax.c b/lib/strtoimax.c
index 0f03ca174..23c8eb66c 100644
--- a/lib/strtoimax.c
+++ b/lib/strtoimax.c
@@ -1,5 +1,5 @@
/* Convert string representation of a number into an intmax_t value.
- Copyright 1999, 2001 Free Software Foundation, Inc.
+ Copyright 1999, 2001, 2002 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -23,6 +23,8 @@
#if HAVE_INTTYPES_H
# include <inttypes.h>
+#elif HAVE_STDINT_H
+# include <stdint.h>
#endif
#if HAVE_STDLIB_H
diff --git a/lib/xstrtol.h b/lib/xstrtol.h
index 513855f14..5d6dd8ebe 100644
--- a/lib/xstrtol.h
+++ b/lib/xstrtol.h
@@ -20,6 +20,8 @@
# if HAVE_INTTYPES_H
# include <inttypes.h> /* for uintmax_t */
+# elif HAVE_STDINT_H
+# include <stdint.h>
# endif
# ifndef PARAMS