git-compat-util: fix NO_OPENSSL on current macOS

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>

René Scharfe committed Apr 14, 2024 at 18:47 UTC 44bdba2fa6b677b58d4761d41ee9b31dc98b12d0
1 file changed +1
git-compat-util.h
+1
@@ -358,6 +358,7 @@ char *gitdirname(char *);
358
359 #ifndef NO_OPENSSL
360 #ifdef __APPLE__
361 +#undef __AVAILABILITY_MACROS_USES_AVAILABILITY
362 #define __AVAILABILITY_MACROS_USES_AVAILABILITY 0
363 #include <AvailabilityMacros.h>
364 #undef DEPRECATED_ATTRIBUTE