diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-02-22 12:28:30 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-02-22 12:28:30 -0800 |
commit | 744ea70c7acaa74249ede91d71de9535c1db1431 (patch) | |
tree | 7e12d52be70bc4d8a0017c0906d2a700080be9f0 | |
parent | Merge branch 'tc/curl-vernum-output-broken-in-7.11' (diff) | |
parent | git-compat-util: do not step on MAC_OS_X_VERSION_MIN_REQUIRED (diff) | |
download | tgif-744ea70c7acaa74249ede91d71de9535c1db1431.tar.xz |
Merge branch 'es/squelch-openssl-warnings-on-macosx'
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
-rw-r--r-- | git-compat-util.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/git-compat-util.h b/git-compat-util.h index 68c07af9d4..3455c5ece6 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -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 |