summaryrefslogtreecommitdiff
path: root/makeint.h
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-04-28 17:31:46 -0400
committerPaul Smith <psmith@gnu.org>2013-04-28 17:31:46 -0400
commit8b034b7d18a08d3a2378e5b6fc9fbdd1b658f142 (patch)
tree6e30929c6b4e65c68fb7b81faf1d48035cb605ec /makeint.h
parent93843ccd08a8d4dff64c5fb52701e150b35c959d (diff)
downloadgunmake-8b034b7d18a08d3a2378e5b6fc9fbdd1b658f142.tar.gz
Small cleanups and fixes.
Diffstat (limited to 'makeint.h')
-rw-r--r--makeint.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/makeint.h b/makeint.h
index 643b611..8ac3861 100644
--- a/makeint.h
+++ b/makeint.h
@@ -168,6 +168,9 @@ unsigned int get_path_max (void);
(! INTEGER_TYPE_SIGNED (t) ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))
#define INTEGER_TYPE_MAXIMUM(t) (~ (t) 0 - INTEGER_TYPE_MINIMUM (t))
+/* The maximum number of digits needed to represent the largest integer. */
+#define INTEGER_LENGTH sizeof("18446744073709551616")
+
#ifndef CHAR_MAX
# define CHAR_MAX INTEGER_TYPE_MAXIMUM (char)
#endif