summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-11-06 22:49:54 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-11-06 22:49:54 +0000
commit0e6f42e86bc904058928ea4bab27b17e25198a13 (patch)
tree3619fc0700aba6023f02c2d73e0d1aee6510e2d3
parentc0616895112783bbb7420f8557309933066d77b6 (diff)
downloadpaxutils-0e6f42e86bc904058928ea4bab27b17e25198a13.tar.gz
* lib/system.h (strtoimax, strtoumax): Declare if the system
headers don't.
-rw-r--r--ChangeLog5
-rw-r--r--lib/system.h7
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6efa4f3..43927ee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-06 Paul Eggert <eggert@cs.ucla.edu>
+
+ * lib/system.h (strtoimax, strtoumax): Declare if the system
+ headers don't.
+
2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
Merge changes from gnulib for file system sub-second time stamps.
diff --git a/lib/system.h b/lib/system.h
index f9e399e..be2c2eb 100644
--- a/lib/system.h
+++ b/lib/system.h
@@ -453,6 +453,13 @@ char *getenv ();
# include <inttypes.h>
#endif
+#if !HAVE_DECL_STRTOIMAX && !defined strtoimax
+intmax_t strtoimax ();
+#endif
+#if !HAVE_DECL_STRTOUMAX && !defined strtoumax
+uintmax_t strtoumax ();
+#endif
+
#include <intprops.h>
#define UINTMAX_STRSIZE_BOUND INT_BUFSIZE_BOUND (uintmax_t)