mirror of
https://github.com/git/git.git
synced 2024-11-24 10:26:17 +08:00
Merge branch 'es/squelch-openssl-warnings-on-macosx' into maint
An earlier workaround to squelch unhelpful deprecation warnings from the complier on Mac OSX unnecessarily set minimum required version of the OS, which the user might want to raise (or lower) for other reasons. * es/squelch-openssl-warnings-on-macosx: git-compat-util: do not step on MAC_OS_X_VERSION_MIN_REQUIRED
This commit is contained in:
commit
e591339ce7
@ -212,12 +212,15 @@ extern char *gitbasename(char *);
|
||||
#endif
|
||||
|
||||
#ifndef NO_OPENSSL
|
||||
#ifdef __APPLE__
|
||||
#define __AVAILABILITY_MACROS_USES_AVAILABILITY 0
|
||||
#define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_6
|
||||
#include <AvailabilityMacros.h>
|
||||
#undef DEPRECATED_ATTRIBUTE
|
||||
#define DEPRECATED_ATTRIBUTE
|
||||
#undef __AVAILABILITY_MACROS_USES_AVAILABILITY
|
||||
#endif
|
||||
#include <openssl/ssl.h>
|
||||
#include <openssl/err.h>
|
||||
#undef MAC_OS_X_VERSION_MIN_REQUIRED
|
||||
#undef __AVAILABILITY_MACROS_USES_AVAILABILITY
|
||||
#ifdef NO_HMAC_CTX_CLEANUP
|
||||
#define HMAC_CTX_cleanup HMAC_cleanup
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user