summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2007-03-14 20:25:41 +0000
committerKen Raeburn <raeburn@mit.edu>2007-03-14 20:25:41 +0000
commita04860e78fbd6cfb041e9beb92701d7dccd04ec3 (patch)
tree1c37b6576647bee3e494b7defb8254bf1617c192 /src/include
parentf87060d06ed9360385fb143cb54535f600a0cc18 (diff)
downloadkrb5-a04860e78fbd6cfb041e9beb92701d7dccd04ec3.tar.gz
krb5-a04860e78fbd6cfb041e9beb92701d7dccd04ec3.tar.xz
krb5-a04860e78fbd6cfb041e9beb92701d7dccd04ec3.zip
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
Diffstat (limited to 'src/include')
-rw-r--r--src/include/k5-platform.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/k5-platform.h b/src/include/k5-platform.h
index 27f85846ac..757b122b3d 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;
}