From: Ken Raeburn Date: Wed, 14 Mar 2007 20:25:41 +0000 (+0000) Subject: Use "unsigned __int{16,32}" types for Windows in load_{16,32}_n, per Kevin X-Git-Tag: krb5-1.7-alpha1~1256 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a04860e78fbd6cfb041e9beb92701d7dccd04ec3;p=krb5.git 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 --- 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; }