[Python-checkins] CVS: python/dist/src/Include pyport.h,2.16,2.17

Vladimir Marangozov python-dev@python.org
Fri, 8 Sep 2000 05:55:37 -0700


Update of /cvsroot/python/python/dist/src/Include
In directory slayer.i.sourceforge.net:/tmp/cvs-serv2712

Modified Files:
	pyport.h 
Log Message:
Add missing Py_PROTO macro for backward compatibility with old extensions
(sources) which may still use it and now fail to compile.
Reported by M-A Lemburg.  Closes [ Bug #113576 ].


Index: pyport.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/pyport.h,v
retrieving revision 2.16
retrieving revision 2.17
diff -C2 -r2.16 -r2.17
*** pyport.h	2000/09/01 23:29:26	2.16
--- pyport.h	2000/09/08 12:55:35	2.17
***************
*** 33,37 ****
  
  
! #define ANY void /* For API compatibility only. Obsolete, do not use. */
  
  /* typedefs for some C9X-defined synonyms for integral types.
--- 33,43 ----
  
  
! /* For backward compatibility only. Obsolete, do not use. */
! #define ANY void
! #ifdef HAVE_PROTOTYPES
! #define Py_PROTO(x) x
! #else
! #define Py_PROTO(x) ()
! #endif
  
  /* typedefs for some C9X-defined synonyms for integral types.