mirror of
https://github.com/python/cpython.git
synced 2025-11-13 07:26:31 +00:00
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 ].
This commit is contained in:
parent
bbcf2a7c81
commit
e2bf7e63d6
1 changed files with 7 additions and 1 deletions
|
|
@ -32,7 +32,13 @@ Used in: LONG_LONG
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
#define ANY void /* For API compatibility only. Obsolete, do not use. */
|
/* 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.
|
/* typedefs for some C9X-defined synonyms for integral types.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue