Browse Source

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
maint
Junio C Hamano 10 years ago
parent
commit
74a101eb48
  1. 4
      git-compat-util.h

4
git-compat-util.h

@ -212,8 +212,12 @@ extern char *gitbasename(char *); @@ -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

Loading…
Cancel
Save