From: Vladimir Marangozov Date: Fri, 8 Sep 2000 12:55:35 +0000 (+0000) Subject: Add missing Py_PROTO macro for backward compatibility with old extensions X-Git-Tag: v2.0b2~417 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2bf7e63d6ae8855eef6858551356046169ddfcd;p=python 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 ]. --- diff --git a/Include/pyport.h b/Include/pyport.h index 27193fef91..b75b5ee731 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -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. *