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).
This commit is contained in:
James Turner 2014-02-06 12:10:34 +00:00
parent 4f5c519636
commit 46eb2f439d

View File

@ -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)