summaryrefslogtreecommitdiff
path: root/src/makeint.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/makeint.h')
-rw-r--r--src/makeint.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/makeint.h b/src/makeint.h
index d4e3fdd4..edac5ba2 100644
--- a/src/makeint.h
+++ b/src/makeint.h
@@ -172,6 +172,10 @@ unsigned int get_path_max (void);
# define USHRT_MAX 65535
#endif
+#ifndef SIZE_MAX
+# define SIZE_MAX ((size_t)~(size_t)0)
+#endif
+
/* Nonzero if the integer type T is signed.
Use <= to avoid GCC warnings about always-false expressions. */
#define INTEGER_TYPE_SIGNED(t) ((t) -1 <= 0)