Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e2bf7e6

Browse files
author
Vladimir Marangozov
committed
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 ].
1 parent bbcf2a7 commit e2bf7e6

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Include/pyport.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,13 @@ Used in: LONG_LONG
3232
**************************************************************************/
3333

3434

35-
#define ANY void /* For API compatibility only. Obsolete, do not use. */
35+
/* For backward compatibility only. Obsolete, do not use. */
36+
#define ANY void
37+
#ifdef HAVE_PROTOTYPES
38+
#define Py_PROTO(x) x
39+
#else
40+
#define Py_PROTO(x) ()
41+
#endif
3642

3743
/* typedefs for some C9X-defined synonyms for integral types.
3844
*

0 commit comments

Comments
 (0)