joto left a comment (osm2pgsql-dev/osm2pgsql#2457)

https://en.cppreference.com/w/c/chrono/localtime.html says `localtime_r` is 
C23, but the man page says its in POSIX.1-1196 and SUSv2, so that's plenty old 
enough for our use case. But [it doesn't look like MSVC supports 
it](https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/localtime-localtime32-localtime64).
 And, in fact, the code in `fmt` is much more complicated than in your commit. 
Looks like we need to use `localtime_s` for Windows.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2457#issuecomment-4187249866
You are receiving this because you are subscribed to this thread.

Message ID: <osm2pgsql-dev/osm2pgsql/pull/2457/[email protected]>
_______________________________________________
Tile-serving mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/tile-serving

Reply via email to