diff options
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 26 |
1 files changed, 21 insertions, 5 deletions
@@ -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.55 2001/02/16 01:34:57 djm Exp $ */ | 4 | /* $Id: defines.h,v 1.56 2001/02/24 00:55:05 mouring Exp $ */ |
5 | 5 | ||
6 | /* Some platforms need this for the _r() functions */ | 6 | /* Some platforms need this for the _r() functions */ |
7 | #if !defined(_REENTRANT) && !defined(SNI) | 7 | #if !defined(_REENTRANT) && !defined(SNI) |
@@ -138,12 +138,20 @@ typedef char int8_t; | |||
138 | # if (SIZEOF_SHORT_INT == 2) | 138 | # if (SIZEOF_SHORT_INT == 2) |
139 | typedef short int int16_t; | 139 | typedef short int int16_t; |
140 | # else | 140 | # else |
141 | # error "16 bit int type not found." | 141 | # ifdef _CRAY |
142 | typedef long int16_t; | ||
143 | # else | ||
144 | # error "16 bit int type not found." | ||
145 | # endif /* _CRAY */ | ||
142 | # endif | 146 | # endif |
143 | # if (SIZEOF_INT == 4) | 147 | # if (SIZEOF_INT == 4) |
144 | typedef int int32_t; | 148 | typedef int int32_t; |
145 | # else | 149 | # else |
146 | # error "32 bit int type not found." | 150 | # ifdef _CRAY |
151 | typedef long int32_t; | ||
152 | # else | ||
153 | # error "32 bit int type not found." | ||
154 | # endif /* _CRAY */ | ||
147 | # endif | 155 | # endif |
148 | #endif | 156 | #endif |
149 | 157 | ||
@@ -163,12 +171,20 @@ typedef unsigned char u_int8_t; | |||
163 | # if (SIZEOF_SHORT_INT == 2) | 171 | # if (SIZEOF_SHORT_INT == 2) |
164 | typedef unsigned short int u_int16_t; | 172 | typedef unsigned short int u_int16_t; |
165 | # else | 173 | # else |
166 | # error "16 bit int type not found." | 174 | # ifdef _CRAY |
175 | typedef unsigned long u_int16_t; | ||
176 | # else | ||
177 | # error "16 bit int type not found." | ||
178 | # endif | ||
167 | # endif | 179 | # endif |
168 | # if (SIZEOF_INT == 4) | 180 | # if (SIZEOF_INT == 4) |
169 | typedef unsigned int u_int32_t; | 181 | typedef unsigned int u_int32_t; |
170 | # else | 182 | # else |
171 | # error "32 bit int type not found." | 183 | # ifdef _CRAY |
184 | typedef unsigned long u_int32_t; | ||
185 | # else | ||
186 | # error "32 bit int type not found." | ||
187 | # endif | ||
172 | # endif | 188 | # endif |
173 | # endif | 189 | # endif |
174 | #endif | 190 | #endif |