summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
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 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;
}