summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorM Hickford <mirth.hickford@gmail.com>2025-02-18 08:45:51 +0100
committerJunio C Hamano <gitster@pobox.com>2025-02-18 11:40:03 -0800
commitf8d95a323a088d88b5db1dd1cb2d554ac73caa10 (patch)
treeef9f358c4f8a7d0e8349da8e67f65e4c31cb7309 /commit.h
parentfd21e6e447516421c5abdba21b483187a5637ba2 (diff)
contrib/credential: fix compilation of wincred helper with MSVC
The git-credential-wincred helper does not compile on Windows with Microsoft Visual Studio because of our use of `__attribute__()`, which its compiler doesn't support. While the rest of our codebase would know to handle this because we redefine the macro in "compat/msvc.h", this stub isn't available here because we don't include "git-compat-util.h" in the first place. Fix the issue by making the attribute depend on the `_MSC_VER` preprocessor macro. Signed-off-by: M Hickford <mirth.hickford@gmail.com> Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
0 files changed, 0 insertions, 0 deletions