Files
libssh/src
Eshan Kelkar b58cb9f72b misc.c, priv.h: Add support for localtime_r() on Windows
Windows supports localtime_s() instead of POSIX's localtime_r()
and the function prototype of localtime_s() is different as compared
to localtime_r().

This commit introduces ssh_localtime() (having same prototype as localtime_r())
for Windows which acts as a wrapper for localtime_s(), and defines localtime_r
as a macro which expands to ssh_localtime for Windows.

As a result, libssh can now use localtime_r() on Windows in the same manner
as localtime_r() can be used on POSIX systems.

Signed-off-by: Eshan Kelkar <eshankelkar@galorithm.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
2024-11-12 17:41:04 +01:00
..
2024-07-31 15:00:24 +02:00
2023-05-04 16:55:17 +02:00
2024-07-18 21:37:29 +02:00
2024-06-28 17:18:08 +02:00
2023-12-18 17:35:04 +01:00
2023-12-18 17:35:04 +01:00
2022-10-07 09:13:19 +02:00
2023-01-09 22:40:10 +01:00
2022-11-23 15:29:29 +01:00
2023-02-02 14:49:06 +01:00
2023-02-02 14:49:06 +01:00
2024-07-31 15:00:24 +02:00
2023-07-11 17:45:31 +02:00
2022-05-10 12:39:26 +02:00
2024-07-11 16:44:14 +02:00
2024-04-29 08:35:42 +02:00
2024-10-21 13:48:14 +02:00