summaryrefslogtreecommitdiff
path: root/src/sys2.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-12-19 09:22:24 +0000
committerJim Meyering <jim@meyering.net>2000-12-19 09:22:24 +0000
commit83a6c55c748c7044ee716c71696c76326aa2ae47 (patch)
treed757b9b8bac2f642383fcbed2e43f2d6d145a387 /src/sys2.h
parent3c46adfe19a6d930ac5ec4c7b5726cc0fa56c2d7 (diff)
downloadcoreutils-83a6c55c748c7044ee716c71696c76326aa2ae47.tar.xz
(UINTMAX_MAX): New macro, taken from C99.
Diffstat (limited to 'src/sys2.h')
-rw-r--r--src/sys2.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sys2.h b/src/sys2.h
index b7afd5822..b39ef9907 100644
--- a/src/sys2.h
+++ b/src/sys2.h
@@ -527,6 +527,10 @@ enum
# define SIZE_MAX TYPE_MAXIMUM (size_t)
#endif
+#ifndef UINTMAX_MAX
+# define UINTMAX_MAX TYPE_MAXIMUM (uintmax_t)
+#endif
+
#ifndef OFF_T_MIN
# define OFF_T_MIN TYPE_MINIMUM (off_t)
#endif