diff options
| author | Paul Sokolovsky | 2014-11-17 00:16:14 +0200 |
|---|---|---|
| committer | Paul Sokolovsky | 2014-11-17 00:16:14 +0200 |
| commit | 91386eee2613cbaf736d746cfef28674cce82c01 (patch) | |
| tree | 68970598d01ce50b7a549a48dc95fce8ad85f925 /windows | |
| parent | fa2edabc5c78408538633b14802379f7b8dcc9c5 (diff) | |
ports: Define mp_off_t.
Diffstat (limited to 'windows')
| -rw-r--r-- | windows/mpconfigport.h | 7 |
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 |
