]> granicus.if.org Git - python/commitdiff
SF bug #495548: troublesome #define in pyport.h
authorTim Peters <tim.peters@gmail.com>
Tue, 25 Dec 2001 19:07:38 +0000 (19:07 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 25 Dec 2001 19:07:38 +0000 (19:07 +0000)
Removed the ancient "#define ANY void".

Bugfix candidate?  Hard call.  The bug report claims the existence of
this #define creates conflicts with other packages, which is easy to
believe.  OTOH, some extension authors may still be relying on its
presence.  I'm afraid you can't win on this one.

Include/pyport.h
Misc/NEWS

index d1acd8ff6a3de07a11dbd2db59082d13702c28ed..5efdf118d68f1b21804fa35e5058968a3c49d88d 100644 (file)
@@ -33,7 +33,6 @@ Used in:  LONG_LONG
 
 
 /* For backward compatibility only. Obsolete, do not use. */
-#define ANY void
 #ifdef HAVE_PROTOTYPES
 #define Py_PROTO(x) x
 #else
index fb9226654fb5301c312b792d3acbdb9d159aba81..65ee65b9a0a87ed978675334ea18976f89edfe8e 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -16,6 +16,11 @@ Build
 
 C API
 
+- An old #define of ANY as void has been removed from pyport.h.  This
+  hasn't been used since Python's pre-ANSI days, and the #define has
+  been marked as obsolete since then.  SF bug 495548 says it created
+  conflicts with other packages, so keeping it around wasn't harmless.
+
 - Because Python's magic number scheme broke on January 1st, we decided
   to stop Python development.  Thanks for all the fish!