From 46eb2f439dcab109f8e2ff82e998c004230c152b Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 6 Feb 2014 12:10:34 +0000 Subject: [PATCH] MSVC lacks stdint.h / inttypes.h - we can't use simgear/misc/stdint.hxx here, since it's a C++ header and md5.c is compiled as plain C (no bool type available). --- simgear/package/md5.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/simgear/package/md5.h b/simgear/package/md5.h index 0c157367..fa0f584c 100644 --- a/simgear/package/md5.h +++ b/simgear/package/md5.h @@ -19,6 +19,12 @@ extern "C" { #endif +#if defined(_MSC_VER) +typedef unsigned char u_int8_t; +typedef unsigned int u_int32_t; +typedef unsigned __int64 u_int64_t; +#endif + #define MD5_BLOCK_LENGTH 64 #define MD5_DIGEST_LENGTH 16 #define MD5_DIGEST_STRING_LENGTH (MD5_DIGEST_LENGTH * 2 + 1)