diff options
author | Darren Tucker <dtucker@zip.com.au> | 2010-10-25 16:54:28 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2010-10-25 16:54:28 +1100 |
commit | 54b1f3121df1317627a52d9b6d1d854ad977cf76 (patch) | |
tree | f11bbc4cec01a6fb1e0cd160785f87852e57b540 | |
parent | bdd3e67c1965c262ae6a6ae1ac88d06dc4393bda (diff) |
- (dtucker) [defines.h] Use SIZE_T_MAX for SIZE_MAX for platforms that have a
native one.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | defines.h | 10 |
2 files changed, 7 insertions, 5 deletions
@@ -2,6 +2,8 @@ | |||
2 | - (tim) [openbsd-compat/glob.h] Remove sys/cdefs.h include that came with | 2 | - (tim) [openbsd-compat/glob.h] Remove sys/cdefs.h include that came with |
3 | 1.12 to unbreak Solaris build. | 3 | 1.12 to unbreak Solaris build. |
4 | ok djm@ | 4 | ok djm@ |
5 | - (dtucker) [defines.h] Use SIZE_T_MAX for SIZE_MAX for platforms that have a | ||
6 | native one. | ||
5 | 7 | ||
6 | 20101024 | 8 | 20101024 |
7 | - (dtucker) [includes.h] Add missing ifdef GLOB_HAS_GL_STATV to fix build. | 9 | - (dtucker) [includes.h] Add missing ifdef GLOB_HAS_GL_STATV to fix build. |
@@ -25,7 +25,7 @@ | |||
25 | #ifndef _DEFINES_H | 25 | #ifndef _DEFINES_H |
26 | #define _DEFINES_H | 26 | #define _DEFINES_H |
27 | 27 | ||
28 | /* $Id: defines.h,v 1.161 2010/10/24 00:58:44 dtucker Exp $ */ | 28 | /* $Id: defines.h,v 1.162 2010/10/25 05:54:28 dtucker Exp $ */ |
29 | 29 | ||
30 | 30 | ||
31 | /* Constants */ | 31 | /* Constants */ |
@@ -250,16 +250,16 @@ typedef unsigned char u_char; | |||
250 | #define SIZE_T_MAX ULONG_MAX | 250 | #define SIZE_T_MAX ULONG_MAX |
251 | #endif /* SIZE_T_MAX */ | 251 | #endif /* SIZE_T_MAX */ |
252 | 252 | ||
253 | #ifndef SIZE_MAX | ||
254 | #define SIZE_MAX UINT_MAX | ||
255 | #endif | ||
256 | |||
257 | #ifndef HAVE_SIZE_T | 253 | #ifndef HAVE_SIZE_T |
258 | typedef unsigned int size_t; | 254 | typedef unsigned int size_t; |
259 | # define HAVE_SIZE_T | 255 | # define HAVE_SIZE_T |
260 | # define SIZE_T_MAX UINT_MAX | 256 | # define SIZE_T_MAX UINT_MAX |
261 | #endif /* HAVE_SIZE_T */ | 257 | #endif /* HAVE_SIZE_T */ |
262 | 258 | ||
259 | #ifndef SIZE_MAX | ||
260 | #define SIZE_MAX SIZE_T_MAX | ||
261 | #endif | ||
262 | |||
263 | #ifndef HAVE_SSIZE_T | 263 | #ifndef HAVE_SSIZE_T |
264 | typedef int ssize_t; | 264 | typedef int ssize_t; |
265 | # define HAVE_SSIZE_T | 265 | # define HAVE_SSIZE_T |