Re: [PATCH 06/12] MSVC: config.mak.uname: drop -D__USE_MINGW_ACCESS from compile definitions
- From
Erik Faye-Lund <kusmabite@gmail.com>
- Date
- Apr 28, 2014, 15:32 UTC
- Message-ID
- <CABPQNSZhMCPyyKVX0AhpttJbEJ3uF4gUPR9gpN=DUcLLxviwPA@mail.gmail.com>
- In-Reply-To
- <1398693097-24651-7-git-send-email-marat@slonopotamus.org>
On Mon, Apr 28, 2014 at 3:51 PM, Marat Radchenko <marat@slonopotamus.org> wrote:
> -D__USE_MINGW_ACCESS only affects MinGW and does nothing when > MSVC is used.
Seems reasonable in itself.
But, doesn't this mean that our access are currently broken on MSVC? The comment about __USE_MINGW_ACCESS is:
/* Old versions of MSVCRT access() just ignored X_OK, while the version
shipped with Vista, returns an error code. This will restore the
old behaviour */This sounds like we should lift the access-fix up one abstraction, into Git.
But wait a minute. In Git for Windows, we already wrapped up access for unicode-support (03a102ff - "Win32: Unicode file name support (except dirent)"), doing the exact same thing already. This patch isn't upstreamed yet, though.
Sounds like there's some cleaning up left to do on our behalf :)
This clean-up makes sense regardless, though.