Compile on windows msys2#10
Conversation
The strptime function is not available on windows in msys2 environment.
Needed for localtime_r on msys2 See msys2/MINGW-packages#1342
As stated in `man 3type tm` we need to define _DEFAULT_SOURCE for access to `tm_gmtoff` and `tm_zone` (since glib 2.20)
|
@masoudd Thanks, I have built your fork on MSYS2 and it has been working without issue. Since there is also effort to create a build pipeline, artifacts can also be published to winget and scoop 26469c64246358de40659dcca603bd5bf87ccc2d @fzerorubigd I could build this on MSYS2, do you think merging would cause issue with Linux builds? |
Yes. That's a good idea. I'll look into it
I've been testing this on linux as well and it seems to be working. The goal is to not change any process for linux, just add functionality for msys |
This PR adds a "strptime.c" stub and some small changes to make it compile on MSYS2 (mingw64).
Any input is appreciated.