]> git.mxchange.org Git - simgear.git/commitdiff
MSVC lacks stdint.h / inttypes.h
authorJames Turner <zakalawe@mac.com>
Thu, 6 Feb 2014 12:10:34 +0000 (12:10 +0000)
committerJames Turner <zakalawe@mac.com>
Thu, 6 Feb 2014 12:10:34 +0000 (12:10 +0000)
- 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

index 0c1573675ba9ce62351dce2fd7caf40353c77993..fa0f584cb58140a36167051d7db370b056ecf2e9 100644 (file)
  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)