mirror of
https://github.com/verilator/verilator.git
synced 2025-04-21 12:06:55 +00:00
Fix MinGW not supportting 'localtime_r'. (#2882)
This commit is contained in:
parent
23c243bb82
commit
0d6099b2b7
@ -500,7 +500,9 @@ typedef unsigned long long vluint64_t; ///< 64-bit unsigned type
|
||||
# define VL_STRCASECMP strcasecmp
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#ifdef __MINGW32__
|
||||
# define VL_LOCALTIME_R(timep, tmp) localtime_s((tmp), (timep))
|
||||
#elif defined(_MSC_VER)
|
||||
# define VL_LOCALTIME_R(timep, tmp) localtime_c((tmp), (timep))
|
||||
#else
|
||||
# define VL_LOCALTIME_R(timep, tmp) localtime_r((timep), (tmp))
|
||||
|
Loading…
Reference in New Issue
Block a user