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.
This commit is contained in:
stijn 2017-12-14 10:58:49 +01:00 committed by Damien George
parent e784274430
commit 6fc58db5d8
1 changed files with 1 additions and 0 deletions

View File

@ -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