Ian Abbott wrote:
This patch makes "private.h" optionally include <direct.h> (and also <io.h>, due to MinGW's behavior), controlled by the HAVE_DIRECT_H macro, and defines mkdir(path, mode) as macro calling _mkdir(path).
Thanks, I like this better, but better yet let's put this in zic.c since it's the only file that needs the mkdir substitute.
There are some warnings about 'tzname' being redeclared without dllimport attribute, when compiling zdump.c and localtime.c
We should be able to fix this by not redeclaring tzname. How about the attached patch? I've installed it in the experimental repository on GitHub. It also tries to fix the link/symlink problem you mentioned in your other email. It takes a somewhat more-ambitious approach, in an attempt to fix some longstanding minor glitches on POSIX hosts too, while we're at it.