summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2014-01-17 14:20:05 +1100
committerDarren Tucker <dtucker@zip.com.au>2014-01-17 14:20:05 +1100
commitacad351a5b1c37de9130c9c1710445cc45a7f6b9 (patch)
tree729f142111125acf46cf20d48e1a0b7743c87c59 /defines.h
parentc3ed065ce8417aaa46490836648c173a5010f226 (diff)
- (dtucker) [defines.h] Add typedefs for uintXX_t types for platforms that
don't have them.
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/defines.h b/defines.h
index b014f349b..66100c840 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.174 2013/11/07 02:28:16 djm Exp $ */ 28/* $Id: defines.h,v 1.175 2014/01/17 03:20:05 dtucker Exp $ */
29 29
30 30
31/* Constants */ 31/* Constants */
@@ -249,6 +249,13 @@ typedef unsigned long u_int32_t;
249#define __BIT_TYPES_DEFINED__ 249#define __BIT_TYPES_DEFINED__
250#endif 250#endif
251 251
252#ifndef HAVE_UINTXX_T
253typedef u_int8_t uint8_t;
254typedef u_int16_t uint16_t;
255typedef u_int32_t uint32_t;
256typedef u_int64_t uint64_t;
257#endif
258
252/* 64-bit types */ 259/* 64-bit types */
253#ifndef HAVE_INT64_T 260#ifndef HAVE_INT64_T
254# if (SIZEOF_LONG_INT == 8) 261# if (SIZEOF_LONG_INT == 8)