projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
563aaa8
)
Include <stdint.h> as an alternative to <inttypes.h>.
author
Jim Meyering
<jim@meyering.net>
Fri, 6 Jun 2003 22:30:28 +0000
(22:30 +0000)
committer
Jim Meyering
<jim@meyering.net>
Fri, 6 Jun 2003 22:30:28 +0000
(22:30 +0000)
lib/strtoimax.c
patch
|
blob
|
history
lib/xstrtol.h
patch
|
blob
|
history
diff --git
a/lib/strtoimax.c
b/lib/strtoimax.c
index
0f03ca1
..
23c8eb6
100644
(file)
--- 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
513855f
..
5d6dd8e
100644
(file)
--- 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