]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Include <stdint.h> if HAVE_STDINT_H.
authorJim Meyering <jim@meyering.net>
Thu, 30 Nov 2000 20:27:49 +0000 (20:27 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 30 Nov 2000 20:27:49 +0000 (20:27 +0000)
(SIZE_MAX): Renamed from SIZE_T_MAX, as C99 uses SIZE_MAX.
All uses changed.

src/sys2.h

index bcc70e043ff857f1003cdeeb3e14d3d0179c7fab..6322482da26fc194d2199767b1f377704b23ac39 100644 (file)
@@ -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