Hello,
I'm trying to port mpg123 over to win64, the patch in its current form
is very intrusive, but it compiles with generic_nofpu mode without
warnings and works fine. No plans to port the .S files yet, I don't know
asm. I am using MSYS with a mingw-w64 cross-compiler to build the binaries.
Please note that plain old gmtime() and localtime() *are* thread-safe
in Microsoft's C library. They use a thread-local buffer.
(That doesn't be that they would be especially nice APIs, though,
using an implicit buffer. But Unix programmers managed fine with them
until threads became popular. gmti
hi,
mingw-w64 has localtime_r(), but not have gmtime_r(), the following
patch add gmtime_r()
---
Index: trunk/mingw-w64-crt/misc/difftime.c
===
--- trunk/mingw-w64-crt/misc/difftime.c (版本 602)
+++ trunk/