Skip to content

Commit 74a101e

Browse files
committed
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
2 parents 3d2c1bf + b195aa0 commit 74a101e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

git-compat-util.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,12 @@ extern char *gitbasename(char *);
212212
#endif
213213

214214
#ifndef NO_OPENSSL
215+
#define __AVAILABILITY_MACROS_USES_AVAILABILITY 0
216+
#define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_6
215217
#include <openssl/ssl.h>
216218
#include <openssl/err.h>
219+
#undef MAC_OS_X_VERSION_MIN_REQUIRED
220+
#undef __AVAILABILITY_MACROS_USES_AVAILABILITY
217221
#endif
218222

219223
/* On most systems <netdb.h> would have given us this, but

0 commit comments

Comments
 (0)