aboutsummaryrefslogtreecommitdiff
path: root/windows
diff options
context:
space:
mode:
authorPaul Sokolovsky2014-11-17 00:16:14 +0200
committerPaul Sokolovsky2014-11-17 00:16:14 +0200
commit91386eee2613cbaf736d746cfef28674cce82c01 (patch)
tree68970598d01ce50b7a549a48dc95fce8ad85f925 /windows
parentfa2edabc5c78408538633b14802379f7b8dcc9c5 (diff)
ports: Define mp_off_t.
Diffstat (limited to 'windows')
-rw-r--r--windows/mpconfigport.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/windows/mpconfigport.h b/windows/mpconfigport.h
index ee207c1ef..7b23f5cb1 100644
--- a/windows/mpconfigport.h
+++ b/windows/mpconfigport.h
@@ -92,6 +92,13 @@ typedef unsigned int mp_uint_t; // must be pointer size
// define standard endianness macros.
#define MP_ENDIANNESS_LITTLE (1)
+// Cannot include <sys/types.h>, as it may lead to symbol name clashes
+#if _FILE_OFFSET_BITS == 64 && !defined(__LP64__)
+typedef long long mp_off_t;
+#else
+typedef long mp_off_t;
+#endif
+
typedef void *machine_ptr_t; // must be of pointer size
typedef const void *machine_const_ptr_t; // must be of pointer size