From a04860e78fbd6cfb041e9beb92701d7dccd04ec3 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Wed, 14 Mar 2007 20:25:41 +0000 Subject: [PATCH] Use "unsigned __int{16,32}" types for Windows in load_{16,32}_n, per Kevin ticket: 5425 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19227 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/k5-platform.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/include/k5-platform.h b/src/include/k5-platform.h index 27f85846a..757b122b3 100644 --- a/src/include/k5-platform.h +++ b/src/include/k5-platform.h @@ -660,14 +660,22 @@ load_64_le (const unsigned char *p) static inline unsigned short load_16_n (const unsigned char *p) { +#ifdef _WIN32 + unsigned __int16 n; +#else uint16_t n; +#endif memcpy(&n, p, 2); return n; } static inline unsigned int load_32_n (const unsigned char *p) { +#ifdef _WIN32 + unsigned __int32 n; +#else uint32_t n; +#endif memcpy(&n, p, 4); return n; } -- 2.26.2