git-compat-util: suppress unavoidable Apple-specific deprecation warnings
[gitweb.git] / git-compat-util.h
index 400e92108687e31dd16fbcea1a43e04556b98566..433b8f2a1d5bc061c143d17fa39653a07768bbbe 100644 (file)
@@ -211,8 +211,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