git-compat-util: do not step on MAC_OS_X_VERSION_MIN_REQUIRED
commit88c03eb5775546a2cae0d8cc9025ef7969b23485
authorKyle J. McKay <mackyle@gmail.com>
Fri, 6 Feb 2015 09:35:31 +0000 (6 01:35 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Feb 2015 22:09:21 +0000 (9 14:09 -0800)
treef646c28a2ac2496c8790516543f41a3c515a685e
parentb195aa00c17ea38d3f1c9125c37348645ea58f7c
git-compat-util: do not step on MAC_OS_X_VERSION_MIN_REQUIRED

MAC_OS_X_VERSION_MIN_REQUIRED may be defined by the builder to a
specific version in order to produce compatible binaries for a
particular system.  Blindly defining it to MAC_OS_X_VERSION_10_6
is bad.

Additionally MAC_OS_X_VERSION_10_6 will not be defined on older
systems and should AvailabilityMacros.h be included on such as
system an error will result.  However, using the explicit value
of 1060 (which is what MAC_OS_X_VERSION_10_6 is defined to) does
not solve the problem.

The changes that introduced stepping on MAC_OS_X_VERSION_MIN were
made in b195aa00 (git-compat-util: suppress unavoidable
Apple-specific deprecation warnings) to avoid deprecation
warnings.

Instead of blindly setting MAC_OS_X_VERSION_MIN to 1060 change
the definition of DEPRECATED_ATTRIBUTE to empty to avoid the
warnings.  This preserves any MAC_OS_X_VERSION_MIN_REQUIRED
setting while avoiding the warnings as intended by b195aa00.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-compat-util.h