]> granicus.if.org Git - python/commitdiff
Add missing Py_PROTO macro for backward compatibility with old extensions
authorVladimir Marangozov <vladimir.marangozov@t-online.de>
Fri, 8 Sep 2000 12:55:35 +0000 (12:55 +0000)
committerVladimir Marangozov <vladimir.marangozov@t-online.de>
Fri, 8 Sep 2000 12:55:35 +0000 (12:55 +0000)
(sources) which may still use it and now fail to compile.
Reported by M-A Lemburg.  Closes [ Bug #113576 ].

Include/pyport.h

index 27193fef9177345069231a4553726a6d6f97eb08..b75b5ee731aa16efb99a9f8e073bf32fe331a24a 100644 (file)
@@ -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.
  *