]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-compat-util: fix NO_OPENSSL on current macOS
authorRené Scharfe <l.s.r@web.de>
Sun, 14 Apr 2024 16:47:54 +0000 (18:47 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Apr 2024 18:01:31 +0000 (11:01 -0700)
b195aa00c1 (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 <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-compat-util.h

index 9bfd7ce76d027b8dbbbd5be1fc67e92f26c4acfa..64bbdae7f13b251f1de8d71003fdec8d7d43b342 100644 (file)
@@ -358,6 +358,7 @@ char *gitdirname(char *);
 
 #ifndef NO_OPENSSL
 #ifdef __APPLE__
+#undef __AVAILABILITY_MACROS_USES_AVAILABILITY
 #define __AVAILABILITY_MACROS_USES_AVAILABILITY 0
 #include <AvailabilityMacros.h>
 #undef DEPRECATED_ATTRIBUTE