[issue27806] 2.7 32-bit builds fail on future releases of OS X due to dependency on deleted header file

Jeremy Sequoia report at bugs.python.org
Thu Sep 15 16:24:33 EDT 2016


Jeremy Sequoia added the comment:

AvailabilityMacros.h is super deprecated and should not be used by anything current. Availability.h was added as replacement in 10.5.

__MAC_OS_X_VERSION_MAX_ALLOWED should be checked instead of defined (DEPRECATED_IN_MAC_OS_X_VERSION_10_12_AND_LATER)

You should really have a central config and use that instead. Eg:

#include <Availability.h>
#define APPLE_SUPPORTS_QUICKTIME (__MAC_OS_X_VERSION_MAX_ALLOWED < 101200) || !__LP64__

Then use APPLE_SUPPORTS_QUICKTIME throughout.  That avoids tons of churn whenever things change (as exemplified by this very bug)

----------
nosy: +jeremyhu

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27806>
_______________________________________


More information about the Python-bugs-list mailing list