Skip to content

Commit 6fc58db

Browse files
stinosdpgeorge
authored andcommitted
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.
1 parent e784274 commit 6fc58db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ports/windows/mpconfigport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ typedef __int64 ssize_t;
232232
#define SSIZE_MAX _I32_MAX
233233
typedef int ssize_t;
234234
#endif
235+
typedef mp_off_t off_t;
235236

236237

237238
// Put static/global variables in sections with a known name

0 commit comments

Comments
 (0)