Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit 0b9ed55

Browse files
committed
windows: Fix utime_mphal compilation for msvc
1 parent 7bb0f7b commit 0b9ed55

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

windows/msvc/sources.props

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<ClCompile Include="$(PyBaseDir)extmod\modurandom.c" />
2424
<ClCompile Include="$(PyBaseDir)extmod\modure.c" />
2525
<ClCompile Include="$(PyBaseDir)extmod\moduzlib.c" />
26+
<ClCompile Include="$(PyBaseDir)extmod\utime_mphal.c" />
2627
</ItemGroup>
2728
<ItemGroup>
2829
<ClInclude Include="$(PyBaseDir)py\*.h" />

windows/windows_mphal.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
#include "py/mpstate.h"
2929
#include "py/mphal.h"
3030

31+
#include <sys/time.h>
3132
#include <windows.h>
3233
#include <unistd.h>
33-
#include <sys/time.h>
3434

3535
HANDLE std_in = NULL;
3636
HANDLE con_out = NULL;

0 commit comments

Comments
 (0)