diff options
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 26 |
1 files changed, 25 insertions, 1 deletions
@@ -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.172 2013/06/01 21:18:48 dtucker Exp $ */ | 28 | /* $Id: defines.h,v 1.176 2014/01/17 13:12:38 dtucker Exp $ */ |
29 | 29 | ||
30 | 30 | ||
31 | /* Constants */ | 31 | /* Constants */ |
@@ -269,6 +269,21 @@ typedef unsigned long long int u_int64_t; | |||
269 | # endif | 269 | # endif |
270 | #endif | 270 | #endif |
271 | 271 | ||
272 | #ifndef HAVE_UINTXX_T | ||
273 | typedef u_int8_t uint8_t; | ||
274 | typedef u_int16_t uint16_t; | ||
275 | typedef u_int32_t uint32_t; | ||
276 | typedef u_int64_t uint64_t; | ||
277 | #endif | ||
278 | |||
279 | #ifndef HAVE_INTMAX_T | ||
280 | typedef long long intmax_t; | ||
281 | #endif | ||
282 | |||
283 | #ifndef HAVE_UINTMAX_T | ||
284 | typedef unsigned long long uintmax_t; | ||
285 | #endif | ||
286 | |||
272 | #ifndef HAVE_U_CHAR | 287 | #ifndef HAVE_U_CHAR |
273 | typedef unsigned char u_char; | 288 | typedef unsigned char u_char; |
274 | # define HAVE_U_CHAR | 289 | # define HAVE_U_CHAR |
@@ -802,4 +817,13 @@ struct winsize { | |||
802 | # endif | 817 | # endif |
803 | #endif | 818 | #endif |
804 | 819 | ||
820 | /* | ||
821 | * Platforms that have arc4random_uniform() and not arc4random_stir() | ||
822 | * shouldn't need the latter. | ||
823 | */ | ||
824 | #if defined(HAVE_ARC4RANDOM) && defined(HAVE_ARC4RANDOM_UNIFORM) && \ | ||
825 | !defined(HAVE_ARC4RANDOM_STIR) | ||
826 | # define arc4random_stir() | ||
827 | #endif | ||
828 | |||
805 | #endif /* _DEFINES_H */ | 829 | #endif /* _DEFINES_H */ |