summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-11-30 20:27:49 +0000
committerJim Meyering <jim@meyering.net>2000-11-30 20:27:49 +0000
commita48a4d5c63a95d3a7060ec8db129c9a25c7dffca (patch)
tree1bc81faaf9fa368267fefb92854f5928226ad4d6 /src
parent57a0382b5fdf3b265b7f9bf93f145fe4460ee0e5 (diff)
downloadcoreutils-a48a4d5c63a95d3a7060ec8db129c9a25c7dffca.tar.xz
Include <stdint.h> if HAVE_STDINT_H.
(SIZE_MAX): Renamed from SIZE_T_MAX, as C99 uses SIZE_MAX. All uses changed.
Diffstat (limited to 'src')
-rw-r--r--src/sys2.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/sys2.h b/src/sys2.h
index bcc70e043..6322482da 100644
--- a/src/sys2.h
+++ b/src/sys2.h
@@ -167,6 +167,10 @@ char *alloca ();
# include <sys/exceptn.h>
#endif
+#if HAVE_STDINT_H
+# include <stdint.h>
+#endif
+
#include <ctype.h>
/* Jim Meyering writes:
@@ -519,8 +523,8 @@ enum
# define ULONG_MAX TYPE_MAXIMUM (unsigned long)
#endif
-#ifndef SIZE_T_MAX
-# define SIZE_T_MAX TYPE_MAXIMUM (size_t)
+#ifndef SIZE_MAX
+# define SIZE_MAX TYPE_MAXIMUM (size_t)
#endif
#ifndef UID_T_MAX