]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
- (dtucker) [defines.h] Use SIZE_T_MAX for SIZE_MAX for platforms that have a
authorDarren Tucker <dtucker@zip.com.au>
Mon, 25 Oct 2010 05:54:28 +0000 (16:54 +1100)
committerDarren Tucker <dtucker@zip.com.au>
Mon, 25 Oct 2010 05:54:28 +0000 (16:54 +1100)
   native one.

ChangeLog
defines.h

index f48cbb5c9f217f86f296adb3bd42002bb124a3d9..bed73463a92d98de1fc75f2968f679725ba71123 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
  - (tim) [openbsd-compat/glob.h] Remove sys/cdefs.h include that came with
    1.12 to unbreak Solaris build.
    ok djm@
+ - (dtucker) [defines.h] Use SIZE_T_MAX for SIZE_MAX for platforms that have a
+   native one.
 
 20101024
  - (dtucker) [includes.h] Add missing ifdef GLOB_HAS_GL_STATV to fix build.
index 49c901aff30d5718523f443b17e5e72699b35b7f..61203c3fe0c1f4a3eec3f47be79215b103c03e3e 100644 (file)
--- 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