beremiz
Clone
Summary
Browse
Changes
Graph
Win32 runtime: fix build with gcc 9.3.0 from msys2
svghmi
2021-08-21, Edouard Tisserant
3bcd5ec67521
Parents
0375d801fff7
Children
7e59bd180bc6
Win32 runtime: fix build with gcc 9.3.0 from msys2
1 files changed, 2 insertions(+), 2 deletions(-)
+2
-2
targets/Win32/plc_Win32_main.c
--- a/targets/Win32/plc_Win32_main.c Tue Aug 17 12:29:36 2021 +0200
+++ b/targets/Win32/plc_Win32_main.c Sat Aug 21 10:54:13 2021 +0200
@@ -26,10 +26,10 @@
return res;
}
-struct _timeb timetmp;
+struct timeb timetmp;
void PLC_GetTime(IEC_TIME *CURRENT_TIME)
{
- _ftime(&timetmp);
+ ftime(&timetmp);
(*CURRENT_TIME).tv_sec = timetmp.time;
(*CURRENT_TIME).tv_nsec = timetmp.millitm * 1000000;