Merge branch 'es/squelch-openssl-warnings-on-macosx'
authorJunio C Hamano <gitster@pobox.com>
Sun, 22 Feb 2015 20:28:30 +0000 (12:28 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sun, 22 Feb 2015 20:28:30 +0000 (12:28 -0800)
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

1  2 
git-compat-util.h
index 68c07af9d465ce92d78b11d347ae0396299a1855,46563326f098818b83abec871c02898cba6b8c6a..3455c5ece68359c70e04284b1c25b97716678172
@@@ -212,15 -211,15 +212,18 @@@ 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
  #endif
  
  /* On most systems <netdb.h> would have given us this, but