[Pyobjc-dev] Error compiling latest CVS w/python 2.2
Brought to you by:
ronaldoussoren
From: Tony L. <to...@lo...> - 2003-02-01 19:17:23
|
Hi, The autoGIL.c module uses some python 2.3 macros. Here is a diff which lets it compile with python 2.2. -Tony tlownds@SilverSurfer:~/Compile/Py/objc/pyobjc% cvs diff Modules/autoGIL.c Index: Modules/autoGIL.c =================================================================== RCS file: /cvsroot/pyobjc/pyobjc/Modules/autoGIL.c,v retrieving revision 1.1 diff -u -d -b -w -r1.1 autoGIL.c --- Modules/autoGIL.c 31 Jan 2003 14:34:13 -0000 1.1 +++ Modules/autoGIL.c 1 Feb 2003 19:03:12 -0000 @@ -1,6 +1,14 @@ #include "Python.h" #include <CoreFoundation/CFRunLoop.h> +/* These macros are defined in Python 2.3 but not 2.2 */ +#ifndef PyMODINIT_FUNC +#define PyMODINIT_FUNC void +#endif +#ifndef PyDoc_STRVAR +#define PyDoc_STRVAR(Var,Str) static char Var[] = Str +#endif + static PyObject *AutoGILError; |