在 2026-9-9 14:49, Zhongteng Gui 写道:
This is indeed an issue. Previously I considered to provide `mingw_gettimeofday`, and forward `gettimeofday` to it. But considering that some packages may use autotools to detect `gettimeofday` (including winpthreads), and autotools doesn't use header file, so I finally chose to provide `gettimeofday` and forward `mingw_gettimeofday`.Maybe we could solve this by the following, and removes __MINGW_ASM_CALL. ``` // in gettimeofday.c int gettimeofday(struct timeval* tv, struct timezone* tz) { return mingw_gettimeofday(tv, tz); } int mingw_gettimeofday(struct timeval* tv, struct timezone* tz) { // Actual logic } ``` If this is ok, I'll update this together with the above 2 fixes.
looks fine; but the second parameter of `gettimeofday` should be `void*`. -- Best regards, LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
