diff options
author | Tim Rice <tim@multitalents.net> | 2012-12-04 07:50:03 -0800 |
---|---|---|
committer | Tim Rice <tim@multitalents.net> | 2012-12-04 07:50:03 -0800 |
commit | 96ce9a1e45a2f2a1b8be7b97fde07e629dd9fa05 (patch) | |
tree | 0a1ef9bb5304aa8bbde97b3d94ef2af1ac1873b1 /defines.h | |
parent | 8b48982a569596f40f9ad16baac9c8c42c8a96aa (diff) |
- (tim) [defines.h] Some platforms are missing ULLONG_MAX. Feedback djm@.
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -25,7 +25,7 @@ #ifndef _DEFINES_H #define _DEFINES_H -/* $Id: defines.h,v 1.169 2012/02/15 04:13:06 tim Exp $ */ +/* $Id: defines.h,v 1.170 2012/12/04 15:50:04 tim Exp $ */ /* Constants */ @@ -283,6 +283,10 @@ typedef unsigned char u_char; # define HAVE_U_CHAR #endif /* HAVE_U_CHAR */ +#ifndef ULLONG_MAX +# define ULLONG_MAX ((unsigned long long)-1) +#endif + #ifndef SIZE_T_MAX #define SIZE_T_MAX ULONG_MAX #endif /* SIZE_T_MAX */ |