Skip to content

Commit 44bdba2

Browse files
rscharfegitster
authored andcommitted
git-compat-util: fix NO_OPENSSL on current macOS
b195aa0 (git-compat-util: suppress unavoidable Apple-specific deprecation warnings, 2014-12-16) started to define __AVAILABILITY_MACROS_USES_AVAILABILITY in git-compat-util.h. On current versions it is already defined (e.g. on macOS 14.4.1). Undefine it before redefining it to avoid a compilation error. Signed-off-by: René Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ec58344 commit 44bdba2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git-compat-util.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ char *gitdirname(char *);
358358

359359
#ifndef NO_OPENSSL
360360
#ifdef __APPLE__
361+
#undef __AVAILABILITY_MACROS_USES_AVAILABILITY
361362
#define __AVAILABILITY_MACROS_USES_AVAILABILITY 0
362363
#include <AvailabilityMacros.h>
363364
#undef DEPRECATED_ATTRIBUTE

0 commit comments

Comments
 (0)