[issue13371] Some Carbon extensions don't build on OSX 10.7

Ronald Oussoren report at bugs.python.org
Tue Nov 8 15:59:39 CET 2011

Ronald Oussoren <ronaldoussoren at mac.com> added the comment:

_Fm fails because the wrapped functionality is no longer present in the Headers (last seen in the QD.framework headers in the 10.6 SDK)

likewise for _Qdoffs and _Qd.

The attached patch changed the preprocessor guards around these bindings from 

#ifndef __LP64__


#if !defined(__LP64__) && !defined(MAC_OS_X_VERSION_10_7)

That is, disable the bindings for these deprecated APIs when building for 64-bit code or when building with the 10.7 SDK (or later).

There is a small risk with this patch: I'm not 100% sure that Apple will refrain from adding a definition for MAC_OS_X_VERSION_10_7 in a later release of the 10.6 SDK.

keywords: +patch
nosy: +ned.deily
stage: needs patch -> patch review
Added file: http://bugs.python.org/file23633/issue13371.txt

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list