summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/defines.h b/defines.h
index b87dbc51e..ab19a077c 100644
--- a/defines.h
+++ b/defines.h
@@ -1,7 +1,7 @@
1#ifndef _DEFINES_H 1#ifndef _DEFINES_H
2#define _DEFINES_H 2#define _DEFINES_H
3 3
4/* $Id: defines.h,v 1.92 2002/06/24 16:26:49 stevesk Exp $ */ 4/* $Id: defines.h,v 1.96 2002/09/26 00:38:48 tim Exp $ */
5 5
6 6
7/* Constants */ 7/* Constants */
@@ -102,7 +102,7 @@ SCO Open Server 3 has INADDR_LOOPBACK defined in rpc/rpc.h but
102including rpc/rpc.h breaks Solaris 6 102including rpc/rpc.h breaks Solaris 6
103*/ 103*/
104#ifndef INADDR_LOOPBACK 104#ifndef INADDR_LOOPBACK
105#define INADDR_LOOPBACK ((ulong)0x7f000001) 105#define INADDR_LOOPBACK ((u_long)0x7f000001)
106#endif 106#endif
107 107
108/* Types */ 108/* Types */
@@ -124,7 +124,7 @@ typedef char int8_t;
124# if (SIZEOF_SHORT_INT == 2) 124# if (SIZEOF_SHORT_INT == 2)
125typedef short int int16_t; 125typedef short int int16_t;
126# else 126# else
127# ifdef _CRAY 127# ifdef _UNICOS
128# if (SIZEOF_SHORT_INT == 4) 128# if (SIZEOF_SHORT_INT == 4)
129typedef short int16_t; 129typedef short int16_t;
130# else 130# else
@@ -132,16 +132,16 @@ typedef long int16_t;
132# endif 132# endif
133# else 133# else
134# error "16 bit int type not found." 134# error "16 bit int type not found."
135# endif /* _CRAY */ 135# endif /* _UNICOS */
136# endif 136# endif
137# if (SIZEOF_INT == 4) 137# if (SIZEOF_INT == 4)
138typedef int int32_t; 138typedef int int32_t;
139# else 139# else
140# ifdef _CRAY 140# ifdef _UNICOS
141typedef long int32_t; 141typedef long int32_t;
142# else 142# else
143# error "32 bit int type not found." 143# error "32 bit int type not found."
144# endif /* _CRAY */ 144# endif /* _UNICOS */
145# endif 145# endif
146#endif 146#endif
147 147
@@ -161,7 +161,7 @@ typedef unsigned char u_int8_t;
161# if (SIZEOF_SHORT_INT == 2) 161# if (SIZEOF_SHORT_INT == 2)
162typedef unsigned short int u_int16_t; 162typedef unsigned short int u_int16_t;
163# else 163# else
164# ifdef _CRAY 164# ifdef _UNICOS
165# if (SIZEOF_SHORT_INT == 4) 165# if (SIZEOF_SHORT_INT == 4)
166typedef unsigned short u_int16_t; 166typedef unsigned short u_int16_t;
167# else 167# else
@@ -174,7 +174,7 @@ typedef unsigned long u_int16_t;
174# if (SIZEOF_INT == 4) 174# if (SIZEOF_INT == 4)
175typedef unsigned int u_int32_t; 175typedef unsigned int u_int32_t;
176# else 176# else
177# ifdef _CRAY 177# ifdef _UNICOS
178typedef unsigned long u_int32_t; 178typedef unsigned long u_int32_t;
179# else 179# else
180# error "32 bit int type not found." 180# error "32 bit int type not found."
@@ -216,6 +216,10 @@ typedef unsigned char u_char;
216# define HAVE_U_CHAR 216# define HAVE_U_CHAR
217#endif /* HAVE_U_CHAR */ 217#endif /* HAVE_U_CHAR */
218 218
219#ifndef SIZE_T_MAX
220#define SIZE_T_MAX ULONG_MAX
221#endif /* SIZE_T_MAX */
222
219#ifndef HAVE_SIZE_T 223#ifndef HAVE_SIZE_T
220typedef unsigned int size_t; 224typedef unsigned int size_t;
221# define HAVE_SIZE_T 225# define HAVE_SIZE_T