- (dtucker) [defines.h] Use SIZE_T_MAX for SIZE_MAX for platforms that have a

native one.
This commit is contained in:
Darren Tucker 2010-10-25 16:54:28 +11:00
parent bdd3e67c19
commit 54b1f3121d
2 changed files with 7 additions and 5 deletions

View File

@ -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.

View File

@ -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