Win32 runtime: fix build with gcc 9.3.0 from msys2 svghmi
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Sat, 21 Aug 2021 10:54:13 +0200
branchsvghmi
changeset 3296 3bcd5ec67521
parent 3295 0375d801fff7
child 3297 7e59bd180bc6
Win32 runtime: fix build with gcc 9.3.0 from msys2
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;