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 b014f349..66100c84 100644
--- a/defines.h
+++ b/defines.h
@@ -25,7 +25,7 @@
#ifndef _DEFINES_H
#define _DEFINES_H
-/* $Id: defines.h,v 1.174 2013/11/07 02:28:16 djm Exp $ */
+/* $Id: defines.h,v 1.175 2014/01/17 03:20:05 dtucker Exp $ */
/* Constants */
@@ -249,6 +249,13 @@ typedef unsigned long u_int32_t;
#define __BIT_TYPES_DEFINED__
#endif
+#ifndef HAVE_UINTXX_T
+typedef u_int8_t uint8_t;
+typedef u_int16_t uint16_t;
+typedef u_int32_t uint32_t;
+typedef u_int64_t uint64_t;
+#endif
+
/* 64-bit types */
#ifndef HAVE_INT64_T
# if (SIZEOF_LONG_INT == 8)