summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVladimir Marangozov <vladimir.marangozov@t-online.de>2000-09-08 12:55:35 (GMT)
committerVladimir Marangozov <vladimir.marangozov@t-online.de>2000-09-08 12:55:35 (GMT)
commite2bf7e63d6ae8855eef6858551356046169ddfcd (patch)
treea22277ca1921d6dab9466548e60cafe9658a0b1f /Include
parentbbcf2a7c810cf9ff8bbd7164e246e56dfdd7779c (diff)
downloadcpython-e2bf7e63d6ae8855eef6858551356046169ddfcd.zip
cpython-e2bf7e63d6ae8855eef6858551356046169ddfcd.tar.gz
cpython-e2bf7e63d6ae8855eef6858551356046169ddfcd.tar.bz2
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 ].
Diffstat (limited to 'Include')
-rw-r--r--Include/pyport.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index 27193fe..b75b5ee 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.
*