summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2010-10-25 16:54:28 +1100
committerDarren Tucker <dtucker@zip.com.au>2010-10-25 16:54:28 +1100
commit54b1f3121df1317627a52d9b6d1d854ad977cf76 (patch)
treef11bbc4cec01a6fb1e0cd160785f87852e57b540 /defines.h
parentbdd3e67c1965c262ae6a6ae1ac88d06dc4393bda (diff)
- (dtucker) [defines.h] Use SIZE_T_MAX for SIZE_MAX for platforms that have a
native one.
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/defines.h b/defines.h
index 49c901af..61203c3f 100644
--- a/defines.h
+++ b/defines.h
@@ -25,7 +25,7 @@
#ifndef _DEFINES_H
#define _DEFINES_H
-/* $Id: defines.h,v 1.161 2010/10/24 00:58:44 dtucker Exp $ */
+/* $Id: defines.h,v 1.162 2010/10/25 05:54:28 dtucker Exp $ */
/* Constants */
@@ -250,16 +250,16 @@ 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
# define SIZE_T_MAX UINT_MAX
#endif /* HAVE_SIZE_T */
+#ifndef SIZE_MAX
+#define SIZE_MAX SIZE_T_MAX
+#endif
+
#ifndef HAVE_SSIZE_T
typedef int ssize_t;
# define HAVE_SSIZE_T