[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compilation problems with stat-w32.c
From: |
Eli Zaretskii |
Subject: |
Re: Compilation problems with stat-w32.c |
Date: |
Thu, 17 Sep 2020 16:21:44 +0300 |
> From: Bruno Haible <bruno@clisp.org>
> Cc: Eli Zaretskii <eliz@gnu.org>
> Date: Wed, 16 Sep 2020 23:54:28 +0200
>
> You are right on both accounts. Thanks for the reports. Should be fixed
> by the two attached patches.
Thanks!
> > In addition, VOLUME_NAME_NONE is used here, but the Windows headers
> > define it only when _WIN32_WINNT is greater or equal to
> > _WIN32_WINNT_VISTA
>
> In the MSVC9, MSVC14, and mingw64 headers, I find VOLUME_NAME_NONE
> to be always defined.
I think that's because these development environments no longer
support Windows versions below Vista.
> And in some old mingw headers from 2003, I find it to be never
> defined.
Maybe in some _really_ old headers. However, your patch solves all of
the cases, regardless of whether the condition is there, and might be
more robust.