diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | defines.h | 6 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,6 @@ | |||
1 | 20121205 | ||
2 | - (tim) [defines.h] Some platforms are missing ULLONG_MAX. Feedback djm@. | ||
3 | |||
1 | 20121203 | 4 | 20121203 |
2 | - (djm) [openbsd-compat/sys-queue.h] Sync with OpenBSD to get | 5 | - (djm) [openbsd-compat/sys-queue.h] Sync with OpenBSD to get |
3 | TAILQ_FOREACH_SAFE needed for upcoming changes. | 6 | TAILQ_FOREACH_SAFE needed for upcoming changes. |
@@ -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.169 2012/02/15 04:13:06 tim Exp $ */ | 28 | /* $Id: defines.h,v 1.170 2012/12/04 15:50:04 tim Exp $ */ |
29 | 29 | ||
30 | 30 | ||
31 | /* Constants */ | 31 | /* Constants */ |
@@ -283,6 +283,10 @@ typedef unsigned char u_char; | |||
283 | # define HAVE_U_CHAR | 283 | # define HAVE_U_CHAR |
284 | #endif /* HAVE_U_CHAR */ | 284 | #endif /* HAVE_U_CHAR */ |
285 | 285 | ||
286 | #ifndef ULLONG_MAX | ||
287 | # define ULLONG_MAX ((unsigned long long)-1) | ||
288 | #endif | ||
289 | |||
286 | #ifndef SIZE_T_MAX | 290 | #ifndef SIZE_T_MAX |
287 | #define SIZE_T_MAX ULONG_MAX | 291 | #define SIZE_T_MAX ULONG_MAX |
288 | #endif /* SIZE_T_MAX */ | 292 | #endif /* SIZE_T_MAX */ |