[Python-checkins] r42330 - python/branches/ssize_t/Include/modsupport.h

martin.v.loewis python-checkins at python.org
Sun Feb 12 10:11:46 CET 2006


Author: martin.v.loewis
Date: Sun Feb 12 10:11:45 2006
New Revision: 42330
Modified:
 python/branches/ssize_t/Include/modsupport.h
Log:
Arrange to rename Py_InitModule4 on 64-bit platforms.
Modified: python/branches/ssize_t/Include/modsupport.h
==============================================================================
--- python/branches/ssize_t/Include/modsupport.h	(original)
+++ python/branches/ssize_t/Include/modsupport.h	Sun Feb 12 10:11:45 2006
@@ -97,6 +97,12 @@
 #define Py_InitModule4 Py_InitModule4TraceRefs
 #endif
 
+#if SIZEOF_SIZE_T != SIZEOF_INT
+/* On a 64-bit system, rename the Py_InitModule4 so that 2.4
+ modules cannot get loaded into a 2.5 interpreter */
+#define Py_InitModule4 Py_InitModule4_64
+#endif
+
 PyAPI_FUNC(PyObject *) Py_InitModule4(const char *name, PyMethodDef *methods,
 const char *doc, PyObject *self,
 int apiver);


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /