[Issue 22777] stat struct in core.sys.windows.stat assumes CRuntime_DigitalMars

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 4 09:13:45 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=22777

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/druntime pull request #3763 "fix Issue 22777 - stat struct in
core.sys.windows.stat assumes CRunti…" was merged into stable:

- 389bbd18960be9d65e88eb314ee4501d191cba07 by human:
  fix Issue 22777 - stat struct in core.sys.windows.stat assumes
CRuntime_DigitalMars

  the new struct is based on `struct _stat` from
https://github.com/wine-mirror/wine/blob/e909986/include/msvcrt/sys/stat.h#L58

  v2: added pragma(mangle) to the functions for compatibility with newer C
runtimes whose default stat struct uses 64-bit time_t
  v3: made the structs use time_t
  v4: added a comment explaining pragmas
  v5: updated comment and removed pragmas, seems like plain stat() always uses
32-bit times after all

https://github.com/dlang/druntime/pull/3763

--


More information about the Digitalmars-d-bugs mailing list