diff options
author | stijn <stijn@ignitron.net> | 2017-12-14 10:58:49 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-12-29 22:14:16 +1100 |
commit | 6fc58db5d8ea52e10b54b08e82fc2351d9f5caf0 (patch) | |
tree | adf35df342cc961749685995b5c8b79f235e96b3 | |
parent | e78427443094163d1839387a2470fd22612ca8d1 (diff) |
windows/mpconfigport: Provide off_t definition for MSVC port
For MSVC off_t is defined in sys/types.h but according to the comment
earlier in mpconfigport.h this cannot be included directly.
So just make off_t the same as mp_off_t.
This fixes the build for MSVC with MICROPY_STREAMS_POSIX_API
enabled because stream.h uses off_t.
-rw-r--r-- | ports/windows/mpconfigport.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/windows/mpconfigport.h b/ports/windows/mpconfigport.h index abad35282..e41f2ebbe 100644 --- a/ports/windows/mpconfigport.h +++ b/ports/windows/mpconfigport.h @@ -232,6 +232,7 @@ typedef __int64 ssize_t; #define SSIZE_MAX _I32_MAX typedef int ssize_t; #endif +typedef mp_off_t off_t; // Put static/global variables in sections with a known name |