3 Fix build errors on Mac OS XLion
.
5 --- Mac
/Modules
/fm
/_Fmmodule
.c
.orig
2010-05-09 15:15:40.000000000 +0000
6 +++ Mac
/Modules
/fm
/_Fmmodule
.c
12 +#include <AvailabilityMacros.h>
13 +#if (__MAC_OS_X_VERSION_MAX_ALLOWED >= 1070) || defined(__LP64__)
21 #include "pymactoolbox.h"
23 @@
-336,32 +342,32 @@
static PyMethodDef Fm_methods
[] = {
28 +#else /* HAVE_CARBON */
30 static PyMethodDef Fm_methods
[] = {
34 -#endif /* __LP64__ */
35 +#endif /* HAVE_CARBON */
43 -#endif /* __LP64__ */
44 +#endif /* HAVE_CARBON */
49 m
= Py_InitModule("_Fm", Fm_methods
);
52 d
= PyModule_GetDict(m
);
53 Fm_Error
= PyMac_GetOSErrException();
54 if (Fm_Error
== NULL
||
55 PyDict_SetItemString(d
, "Error", Fm_Error
) != 0)
57 -#endif /* __LP64__ */
58 +#endif /* HAVE_CARBON */
61 /* ========================= End module _Fm ========================= */