Skip to content
Snippets Groups Projects
Commit 6fc58db5 authored by stijn's avatar stijn Committed by Damien George
Browse files

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.
parent e7842744
No related branches found
No related tags found
No related merge requests found
...@@ -232,6 +232,7 @@ typedef __int64 ssize_t; ...@@ -232,6 +232,7 @@ typedef __int64 ssize_t;
#define SSIZE_MAX _I32_MAX #define SSIZE_MAX _I32_MAX
typedef int ssize_t; typedef int ssize_t;
#endif #endif
typedef mp_off_t off_t;
// Put static/global variables in sections with a known name // Put static/global variables in sections with a known name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment