summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-01-07 21:08:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-01-07 21:08:30 (GMT)
commit74a101eb48b72fad372cfa15669a3b6c55fb1046 (patch)
tree1319ef4691b0e9096ccc3667ac74e03365118dce /git-compat-util.h
parent3d2c1bf2d44ccae8fc696263c771f9c53ca1576e (diff)
parentb195aa00c17ea38d3f1c9125c37348645ea58f7c (diff)
downloadgit-74a101eb48b72fad372cfa15669a3b6c55fb1046.zip
git-74a101eb48b72fad372cfa15669a3b6c55fb1046.tar.gz
git-74a101eb48b72fad372cfa15669a3b6c55fb1046.tar.bz2
Merge branch 'es/squelch-openssl-warnings-on-macosx'
Squelch useless compiler warnings on Mac OS X. * es/squelch-openssl-warnings-on-macosx: git-compat-util: suppress unavoidable Apple-specific deprecation warnings
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index b763a4e..dcecd85 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -212,8 +212,12 @@ extern char *gitbasename(char *);
#endif
#ifndef NO_OPENSSL
+#define __AVAILABILITY_MACROS_USES_AVAILABILITY 0
+#define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_6
#include <openssl/ssl.h>
#include <openssl/err.h>
+#undef MAC_OS_X_VERSION_MIN_REQUIRED
+#undef __AVAILABILITY_MACROS_USES_AVAILABILITY
#endif
/* On most systems <netdb.h> would have given us this, but