Fix MSVC localtime_s (#3124).

This commit is contained in:
Wilson Snyder 2022-03-27 13:59:18 -04:00
parent f9e69984ff
commit 3f7bf3d2dc
3 changed files with 3 additions and 3 deletions

View File

@ -14,6 +14,7 @@ Verilator 4.221 devel
**Minor:**
* Split --prof-threads into --prof-exec and --prof-pgo (#3365). [Geza Lore, Shunyao CAD]
* Fix MSVC localtime_s (#3124).
Verilator 4.220 2022-03-12

View File

@ -492,10 +492,8 @@ using ssize_t = uint32_t; ///< signed size_t; returned from read()
# define VL_STRCASECMP strcasecmp
#endif
#ifdef __MINGW32__
#if defined(__MINGW32__) || defined(_MSC_VER)
# 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))
#endif

View File

@ -58,6 +58,7 @@
#include "V3Unroll.h"
#include "V3Hasher.h"
#include <cctype>
#include <deque>
#include <map>
#include <memory>