
On Thu, Jan 02, 2003 at 04:40:21PM -0500, Jason Tishler wrote:
Anyway, with the attached patch to pyport.h, I was able to build Cygwin Python without any errors. Note this includes the new datetime module from CVS -- not the patched one in sandbox.
I think you can simplify the patch by doing: #if !defined(__CYGWIN__) #define PyAPI_FUNC(RTYPE) __declspec(dllimport) RTYPE #endif (ie, just don't define PyAPI_FUNC on line 432) PyAPI_FUNC will still get defined in the next block (445).
Now if SF could search for patches by the submitter, my job would be a little easier...
You can look for patches closed and assigned to you. That should help. But the line below (which has 35 hits) is probably faster/easier: egrep '\.tp_.* =' */*.c It may not be everything, but should be a pretty good start. Or you could grep all your checkins. :-) Neal --
Index: pyport.h =================================================================== RCS file: /cvsroot/python/python/dist/src/Include/pyport.h,v retrieving revision 2.57 diff -u -p -r2.57 pyport.h --- pyport.h 28 Dec 2002 21:56:07 -0000 2.57 +++ pyport.h 2 Jan 2003 20:51:50 -0000 @@ -429,7 +429,11 @@ and both these use __declspec() # else /* Py_BUILD_CORE */ /* Building an extension module, or an embedded situation */ /* public Python functions and data are imported */ -# define PyAPI_FUNC(RTYPE) __declspec(dllimport) RTYPE +# if defined(__CYGWIN__) +# define PyAPI_FUNC(RTYPE) RTYPE +# else /* __CYGWIN__ */ +# define PyAPI_FUNC(RTYPE) __declspec(dllimport) RTYPE +# endif /* __CYGWIN__ */ # define PyAPI_DATA(RTYPE) extern __declspec(dllimport) RTYPE /* module init functions outside the core must be exported */ # if defined(__cplusplus)