summaryrefslogtreecommitdiff
path: root/lzf_c.c
diff options
context:
space:
mode:
Diffstat (limited to 'lzf_c.c')
-rw-r--r--lzf_c.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lzf_c.c b/lzf_c.c
index 2120cbf..268313a 100644
--- a/lzf_c.c
+++ b/lzf_c.c
@@ -114,7 +114,11 @@ lzf_compress (const void *const in_data, unsigned int in_len,
const u8 *ref;
unsigned int hval;
+#if WIN32
+ unsigned _int64 off; /* workaround for microsoft bug (they claim to support POSIX) */
+#else
unsigned long off;
+#endif
int lit;
if (!in_len || !out_len)