summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/defines.h b/defines.h
index 53f83a142..64515c2ff 100644
--- a/defines.h
+++ b/defines.h
@@ -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.171 2013/03/07 09:06:13 dtucker Exp $ */
29 29
30 30
31/* Constants */ 31/* Constants */
@@ -227,11 +227,7 @@ typedef uint16_t u_int16_t;
227typedef uint32_t u_int32_t; 227typedef uint32_t u_int32_t;
228# define HAVE_U_INTXX_T 1 228# define HAVE_U_INTXX_T 1
229# else 229# else
230# if (SIZEOF_CHAR == 1)
231typedef unsigned char u_int8_t; 230typedef unsigned char u_int8_t;
232# else
233# error "8 bit int type not found."
234# endif
235# if (SIZEOF_SHORT_INT == 2) 231# if (SIZEOF_SHORT_INT == 2)
236typedef unsigned short int u_int16_t; 232typedef unsigned short int u_int16_t;
237# else 233# else
@@ -283,6 +279,10 @@ typedef unsigned char u_char;
283# define HAVE_U_CHAR 279# define HAVE_U_CHAR
284#endif /* HAVE_U_CHAR */ 280#endif /* HAVE_U_CHAR */
285 281
282#ifndef ULLONG_MAX
283# define ULLONG_MAX ((unsigned long long)-1)
284#endif
285
286#ifndef SIZE_T_MAX 286#ifndef SIZE_T_MAX
287#define SIZE_T_MAX ULONG_MAX 287#define SIZE_T_MAX ULONG_MAX
288#endif /* SIZE_T_MAX */ 288#endif /* SIZE_T_MAX */