projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f87060d
)
Use "unsigned __int{16,32}" types for Windows in load_{16,32}_n, per Kevin
author
Ken Raeburn
<raeburn@mit.edu>
Wed, 14 Mar 2007 20:25:41 +0000
(20:25 +0000)
committer
Ken Raeburn
<raeburn@mit.edu>
Wed, 14 Mar 2007 20:25:41 +0000
(20:25 +0000)
ticket: 5425
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19227
dc483132
-0cff-0310-8789-
dd5450dbe970
src/include/k5-platform.h
patch
|
blob
|
history
diff --git
a/src/include/k5-platform.h
b/src/include/k5-platform.h
index 27f85846ac786343eff18b162388210e329a0ca4..757b122b3d57160c8894e8fed8b5d4a031701887 100644
(file)
--- 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;
}