[Python-checkins] python/dist/src/Include pyport.h,2.62,2.63

jlt63 at users.sourceforge.net jlt63 at users.sourceforge.net
Thu Sep 4 05:59:52 EDT 2003


Update of /cvsroot/python/python/dist/src/Include
In directory sc8-pr-cvs1:/tmp/cvs-serv18555/Include

Modified Files:
	pyport.h 
Log Message:
Bug #794140: cygwin builds do not embed

The embed2.diff patch solves the user's problem by exporting the missing
symbols from the Python core so Python can be embedded in another Cygwin
application (well, at lest vim).


Index: pyport.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/pyport.h,v
retrieving revision 2.62
retrieving revision 2.63
diff -C2 -d -r2.62 -r2.63
*** pyport.h	4 Sep 2003 11:04:06 -0000	2.62
--- pyport.h	4 Sep 2003 11:59:50 -0000	2.63
***************
*** 429,433 ****
  #			define PyAPI_DATA(RTYPE) extern __declspec(dllexport) RTYPE
  			/* module init functions inside the core need no external linkage */
! #			define PyMODINIT_FUNC void
  #		else /* Py_BUILD_CORE */
  			/* Building an extension module, or an embedded situation */
--- 429,438 ----
  #			define PyAPI_DATA(RTYPE) extern __declspec(dllexport) RTYPE
  			/* module init functions inside the core need no external linkage */
! 			/* except for Cygwin to handle embedding (FIXME: BeOS too?) */
! #			if defined(__CYGWIN__)
! #				define PyMODINIT_FUNC __declspec(dllexport) void
! #			else /* __CYGWIN__ */
! #				define PyMODINIT_FUNC void
! #			endif /* __CYGWIN__ */
  #		else /* Py_BUILD_CORE */
  			/* Building an extension module, or an embedded situation */





More information about the Python-checkins mailing list