From acad351a5b1c37de9130c9c1710445cc45a7f6b9 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Fri, 17 Jan 2014 14:20:05 +1100 Subject: [PATCH] - (dtucker) [defines.h] Add typedefs for uintXX_t types for platforms that don't have them. --- ChangeLog | 2 ++ defines.h | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 54a894d44..feaf96eb7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,8 @@ includes.h to pull in all of the compatibility stuff. - (dtucker) [openbsd-compat/bcrypt_pbkdf.c] Wrap stdlib.h include inside #ifdef HAVE_STDINT_H. + - (dtucker) [defines.h] Add typedefs for uintXX_t types for platforms that + don't have them. 20140118 - (djm) OpenBSD CVS Sync diff --git a/defines.h b/defines.h index b014f349b..66100c840 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)