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
+1 -3
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