diff --git a/tools/psl.c b/tools/psl.c index 95d8b65..054d0b6 100644 --- a/tools/psl.c +++ b/tools/psl.c @@ -38,6 +38,10 @@ #ifdef _WIN32 # include // WSAStartup, WSACleanup + +// Windows does not have localtime_r but has localtime_s, which is more or less +// the same except that the arguments are reversed +# define localtime_r(t_sec,t_now) localtime_s(t_now,t_sec) #endif #include