summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2010-10-24 11:58:43 +1100
committerDarren Tucker <dtucker@zip.com.au>2010-10-24 11:58:43 +1100
commit7bc236de2124070a68e6b2360418142b0784a526 (patch)
tree2ca73ead9f21e5dfa91401f6cd2e0ccadf8cca11 /defines.h
parentd633fef4712f87324516bd7e6c0314dfb37a5820 (diff)
- (dtucker) [defines.h] Add SIZE_MAX for the benefit of platforms that don't
have it.
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/defines.h b/defines.h
index fe25170e..49c901af 100644
--- a/defines.h
+++ b/defines.h
@@ -25,7 +25,7 @@
#ifndef _DEFINES_H
#define _DEFINES_H
-/* $Id: defines.h,v 1.160 2010/04/09 08:13:27 dtucker Exp $ */
+/* $Id: defines.h,v 1.161 2010/10/24 00:58:44 dtucker Exp $ */
/* Constants */
@@ -250,6 +250,10 @@ typedef unsigned char u_char;
#define SIZE_T_MAX ULONG_MAX
#endif /* SIZE_T_MAX */
+#ifndef SIZE_MAX
+#define SIZE_MAX UINT_MAX
+#endif
+
#ifndef HAVE_SIZE_T
typedef unsigned int size_t;
# define HAVE_SIZE_T