From 12d08bf91e07e03771132e5b88a8208df6f4a3b2 Mon Sep 17 00:00:00 2001 From: Danny Mayer Date: Fri, 6 Jul 2001 05:49:22 +0000 Subject: [PATCH] win32-specific integer definitions --- lib/isc/win32/include/isc/int.h | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/lib/isc/win32/include/isc/int.h b/lib/isc/win32/include/isc/int.h index a8f9d5f0a5..8961cfe0e3 100644 --- a/lib/isc/win32/include/isc/int.h +++ b/lib/isc/win32/include/isc/int.h @@ -15,11 +15,15 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: int.h,v 1.7 2001/01/09 21:59:02 bwelling Exp $ */ +/* $Id: int.h,v 1.9 2001/07/08 05:09:25 mayer Exp $ */ #ifndef ISC_INT_H #define ISC_INT_H 1 +#define _INTEGRAL_MAX_BITS 64 +#include + + typedef __int8 isc_int8_t; typedef unsigned __int8 isc_uint8_t; typedef __int16 isc_int16_t; @@ -29,4 +33,25 @@ typedef unsigned __int32 isc_uint32_t; typedef __int64 isc_int64_t; typedef unsigned __int64 isc_uint64_t; +#define ISC_INT8_MIN -128 +#define ISC_INT8_MAX 127 +#define ISC_UINT8_MAX 255 + +#define ISC_INT16_MIN -32768 +#define ISC_INT16_MAX 32767 +#define ISC_UINT16_MAX 65535 + +/* + * Note that "int" is 32 bits on all currently supported Unix-like operating + * systems, but "long" can be either 32 bits or 64 bits, thus the 32 bit + * constants are not qualified with "L". + */ +#define ISC_INT32_MIN _I32_MIN +#define ISC_INT32_MAX _I32_MAX +#define ISC_UINT32_MAX _UI32_MAX + +#define ISC_INT64_MIN _I64_MIN +#define ISC_INT64_MAX _I64_MAX +#define ISC_UINT64_MAX _UI64_MAX + #endif /* ISC_INT_H */